Merge pull request #2105 from weather-gov/ik/list-item-alert-color #591
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 commits to main. | |
name: Build and deploy staging | |
on: | |
push: | |
paths-ignore: | |
- "docs/**" | |
branches: | |
- main | |
jobs: | |
deploy-staging: | |
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 weathergov-staging space | |
uses: cloud-gov/cg-cli-tools@main | |
env: | |
DEPLOY_NOW: thanks | |
with: | |
cf_username: ${{ secrets.CF_STAGING_USERNAME }} | |
cf_password: ${{ secrets.CF_STAGING_PASSWORD }} | |
cf_org: nws-weathergov | |
cf_space: staging | |
cf_command: "push api-weathergov-staging -f manifests/manifest-staging.yaml --var newrelic-license=${{ secrets.NEWRELIC_LICENSE }} --strategy rolling" | |
- name: Deploy application to cloud.gov weathergov-staging space | |
uses: cloud-gov/cg-cli-tools@main | |
env: | |
DEPLOY_NOW: thanks | |
with: | |
cf_username: ${{ secrets.CF_STAGING_USERNAME }} | |
cf_password: ${{ secrets.CF_STAGING_PASSWORD }} | |
cf_org: nws-weathergov | |
cf_space: staging | |
cf_command: "push weathergov-staging -f manifests/manifest-staging.yaml --var newrelic-license=${{ secrets.NEWRELIC_LICENSE }} --strategy rolling" | |
- name: Run post deploy steps | |
uses: cloud-gov/cg-cli-tools@main | |
with: | |
cf_username: ${{ secrets.CF_STAGING_USERNAME }} | |
cf_password: ${{ secrets.CF_STAGING_PASSWORD }} | |
cf_org: nws-weathergov | |
cf_space: staging | |
cf_command: "run-task weathergov-staging --command './scripts/post-deploy.sh' --name 'weathergov-staging-deploy' -k '2G' -m '256M'" | |
new-relic-record: | |
name: Record deployment to New Relic | |
needs: | |
- deploy-staging | |
uses: ./.github/workflows/new-relic-deployment.yaml | |
with: | |
environment: "staging" | |
secrets: inherit |