Skip to content

Merge pull request #1404 from weather-gov/mgwalker/1316-empty-nights #23

Merge pull request #1404 from weather-gov/mgwalker/1316-empty-nights

Merge pull request #1404 from weather-gov/mgwalker/1316-empty-nights #23

Workflow file for this run

# This workflow runs on pushes of tagged commits.
# "Releases" of tagged commits will deploy selected branch to staging.
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: Deploy to cloud.gov sandbox
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 -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