Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
0pens0 committed Aug 5, 2024
1 parent 015f87e commit 839f340
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/cfdeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,14 @@ jobs:
gitops-deploy:
runs-on: ubuntu-latest
steps:
- name: Install CLI
- name: Deploy to CF
env:
CF_DOCKER_PASSWORD: ${{secrets.CF_DOCKER_PASSWORD}}
run: |
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
sudo apt update
sudo apt install cf8-cli
# sudo apt install openjdk-17-jdk openjdk-17-jre
# sudo update-java-alternatives --set /usr/lib/jvm/java-1.17.0-openjdk-amd64
# export JAVA_HOME=/usr/lib/jvm/java-1.17.0-openjdk-amd64

- name: Deploy to CF
env:
# CF_API: ${{ vars.CF_API_ENDPOINT }}
# CF_ORG: ${{ vars.CF_ORG }}
# CF_SPACE: ${{ vars.CF_SPACE }}
CF_DOCKER_PASSWORD: ${{secrets.CF_DOCKER_PASSWORD}}

run: |
cf api ${{ vars.CF_API_ENDPOINT }} --skip-ssl-validation
cf auth admin ${{ secrets.CF_API_TOKEN }}
cf target -o ${{ vars.CF_ORG }} -s ${{ vars.CF_SPACE }}
Expand Down

0 comments on commit 839f340

Please sign in to comment.