#4409: CNAME record form (#4803) #237
Workflow file for this run
This file contains hidden or 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
| # This workflow runs on pushes of tagged commits. | |
| # "Releases" of tagged commits will deploy selected branch to stable. | |
| name: Build and deploy stable for tagged release | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'docs/**' | |
| - '**.md' | |
| - '.gitignore' | |
| tags: | |
| - v* | |
| jobs: | |
| deploy-stable: | |
| if: ${{ github.ref_type == 'tag' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Compile USWDS assets | |
| working-directory: ./src | |
| run: | | |
| docker compose run node npm install && | |
| docker compose run node npx gulp copyAssets && | |
| docker compose run node npx gulp compile | |
| - name: Collect static assets | |
| working-directory: ./src | |
| run: docker compose run app python manage.py collectstatic --no-input | |
| - name: Deploy to cloud.gov sandbox and setting env for '/version' endpoint | |
| uses: cloud-gov/cg-cli-tools@main | |
| env: | |
| GIT_COMMIT_SHA: ${{ github.sha }} | |
| GIT_TAG: ${{ github.ref_name }} | |
| with: | |
| cf_username: ${{ secrets.CF_STABLE_USERNAME }} | |
| cf_password: ${{ secrets.CF_STABLE_PASSWORD }} | |
| cf_org: cisa-dotgov | |
| cf_space: stable | |
| cf_command: >- | |
| push -f ops/manifests/manifest-stable.yaml | |
| --var GIT_COMMIT_SHA="$GIT_COMMIT_SHA" | |
| --var GIT_TAG="$GIT_TAG" | |
| --strategy rolling | |
| - name: Run Django migrations | |
| uses: cloud-gov/cg-cli-tools@main | |
| with: | |
| cf_username: ${{ secrets.CF_STABLE_USERNAME }} | |
| cf_password: ${{ secrets.CF_STABLE_PASSWORD }} | |
| cf_org: cisa-dotgov | |
| cf_space: stable | |
| cf_command: "run-task getgov-stable --command 'python manage.py migrate' --name migrate" |