Add CF CLI 8.9.0 #15
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 CLAW" | |
on: | |
push: | |
branches: | |
- 'master' | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout CLAW | |
uses: actions/checkout@v4 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Run Tests | |
run: bundle exec rake test | |
deploy: | |
runs-on: ubuntu-latest | |
needs: [test] | |
steps: | |
- name: Checkout CLAW | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
# Install CLI | |
# ...first add the Cloud Foundry Foundation public key and package repository to your system | |
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 | |
# ...then, update your local package index, then finally install the cf CLI | |
sudo apt-get update | |
sudo apt-get install cf8-cli | |
- name: Push CLAW | |
run: | | |
cf api ${{ secrets.FOUNDATION_URL }} | |
export CF_USERNAME=${{ secrets.FOUNDATION_USERNAME }} | |
export CF_PASSWORD=${{ secrets.FOUNDATION_PASSWORD }} | |
cf auth | |
cf target -o ${{ secrets.APP_ORG }} -s ${{ secrets.APP_SPACE }} | |
cf push --manifest manifest-oss.yml --vars-file claw-variables.yml --strategy rolling |