Merge pull request #2236 from weather-gov/dependabot/npm_and_yarn/sty… #43
Workflow file for this run
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
# This workflow runs on pushes of tagged commits. | |
# "Releases" of tagged commits will deploy selected branch to beta. | |
name: Build and deploy beta for tagged release | |
on: | |
push: | |
tags: | |
- beta-* | |
jobs: | |
deploy-beta: | |
if: ${{ github.ref_type == 'tag' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set library versions | |
uses: ./.github/actions/set-library-versions | |
- name: bundle javascript | |
uses: ./.github/actions/javascript-bundle | |
- name: Deploy api interop layer to cloud.gov beta space | |
uses: cloud-gov/cg-cli-tools@main | |
env: | |
DEPLOY_NOW: thanks | |
with: | |
cf_username: ${{ secrets.CF_BETA_USERNAME }} | |
cf_password: ${{ secrets.CF_BETA_PASSWORD }} | |
cf_org: nws-weathergov | |
cf_space: prod | |
cf_command: "push api-weathergov-beta -f manifests/manifest-beta.yaml --var newrelic-license=${{ secrets.NEWRELIC_LICENSE }} --strategy rolling" | |
- name: Deploy application to cloud.gov beta space | |
uses: cloud-gov/cg-cli-tools@main | |
env: | |
DEPLOY_NOW: thanks | |
with: | |
cf_username: ${{ secrets.CF_BETA_USERNAME }} | |
cf_password: ${{ secrets.CF_BETA_PASSWORD }} | |
cf_org: nws-weathergov | |
cf_space: prod | |
cf_command: "push weathergov-beta -f manifests/manifest-beta.yaml --var newrelic-license=${{ secrets.NEWRELIC_LICENSE }} --strategy rolling" | |
- name: Run post-deploy steps in beta | |
uses: cloud-gov/cg-cli-tools@main | |
with: | |
cf_username: ${{ secrets.CF_BETA_USERNAME }} | |
cf_password: ${{ secrets.CF_BETA_PASSWORD }} | |
cf_org: nws-weathergov | |
cf_space: prod | |
cf_command: "run-task weathergov-beta --command './scripts/post-deploy.sh' --name 'weathergov-beta-deploy' -k '2G' -m '256M'" | |
new-relic-record: | |
name: Record deployment to New Relic | |
needs: | |
- deploy-beta | |
uses: ./.github/workflows/new-relic-deployment.yaml | |
with: | |
environment: "beta" | |
secrets: inherit |