0pens0 deploying #101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to CF | |
run-name: ${{ github.actor }} deploying | |
on: | |
push: | |
branches: | |
- "dev" | |
jobs: | |
gitops-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- 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 | |
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 }} | |
cf push spring-metal --docker-image harbor.vmtanzu.com/openso-tap-apps/spring-metal --docker-username openso | |
- run: echo "🍏 This job's status is ${{ job.status }}." |