Skip to content

Merge pull request #1644 from weather-gov/dependabot/npm_and_yarn/day… #442

Merge pull request #1644 from weather-gov/dependabot/npm_and_yarn/day…

Merge pull request #1644 from weather-gov/dependabot/npm_and_yarn/day… #442

# 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: Deploy 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 -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