Skip to content

Restage apps

Restage apps #121

Workflow file for this run

---
name: Restage apps
on:
workflow_dispatch:
inputs:
environment:
description: "Which environment needs to be restaged"
required: true
default: staging
type: environment
jobs:
restage_apps:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
strategy:
matrix:
app: ["api", "admin"]
steps:
- name: Update env variables ${{matrix.app}}
uses: cloud-gov/cg-cli-tools@main
with:
cf_username: ${{ secrets.CLOUDGOV_USERNAME }}
cf_password: ${{ secrets.CLOUDGOV_PASSWORD }}
cf_org: gsa-tts-benefits-studio
cf_space: notify-${{ inputs.environment }}
command: |

Check failure on line 28 in .github/workflows/restage-apps.yml

View workflow run for this annotation

GitHub Actions / Restage apps

Invalid workflow file

The workflow is not valid. .github/workflows/restage-apps.yml (Line: 28, Col: 20): Unexpected symbol: '$DANGEROUS_SALT'. Located at position 9 within expression: secrets.$DANGEROUS_SALT

Check failure on line 28 in .github/workflows/restage-apps.yml

View workflow run for this annotation

GitHub Actions / Restage apps

Invalid workflow file

The workflow is not valid. .github/workflows/restage-apps.yml (Line: 28, Col: 20): Unexpected symbol: '$DANGEROUS_SALT'. Located at position 9 within expression: secrets.$DANGEROUS_SALT
cf set-env notify-${{matrix.app}}-${{inputs.environment}} DANGEROUS_SALT "${{secrets.$DANGEROUS_SALT}}"
- name: Restage ${{matrix.app}}
uses: cloud-gov/cg-cli-tools@main
with:
cf_username: ${{ secrets.CLOUDGOV_USERNAME }}
cf_password: ${{ secrets.CLOUDGOV_PASSWORD }}
cf_org: gsa-tts-benefits-studio
cf_space: notify-${{ inputs.environment }}
command: |
cf restage --strategy rolling notify-${{matrix.app}}-${{inputs.environment}}
- name: Restage ${{matrix.app}} egress
uses: cloud-gov/cg-cli-tools@main
with:
cf_username: ${{ secrets.CLOUDGOV_USERNAME }}
cf_password: ${{ secrets.CLOUDGOV_PASSWORD }}
cf_org: gsa-tts-benefits-studio
cf_space: notify-${{ inputs.environment }}-egress
command: "cf restage --strategy rolling egress-proxy-notify-${{matrix.app}}-${{inputs.environment}}"