-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (39 loc) · 1.36 KB
/
deploy-beta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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