This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 118
79 lines (73 loc) · 2.25 KB
/
commit.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
name: commit
on:
push:
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: run-tests
run: make cloud-test
deploy-development:
if: github.ref == 'refs/heads/develop'
name: deploy (development)
environment: development
runs-on: ubuntu-latest
needs:
- test
steps:
- name: checkout
uses: actions/checkout@v3
- name: deploy
uses: cloud-gov/cg-cli-tools@main
with:
command: cf push dashboard --vars-file vars.development.yml --strategy rolling
cf_org: gsa-datagov
cf_space: development
cf_username: ${{secrets.CF_SERVICE_USER}}
cf_password: ${{secrets.CF_SERVICE_AUTH}}
- name: smoke test
run: curl --fail --silent https://dashboard-dev-datagov.app.cloud.gov/healthcheck?$(date +%s)
deploy-staging:
if: github.ref == 'refs/heads/main'
name: deploy (staging)
environment: staging
runs-on: ubuntu-latest
needs:
- test
steps:
- name: checkout
uses: actions/checkout@v3
- name: deploy
uses: cloud-gov/cg-cli-tools@main
with:
command: cf push dashboard-stage --vars-file vars.staging.yml --strategy rolling
cf_org: gsa-datagov
cf_space: staging
cf_username: ${{secrets.CF_SERVICE_USER}}
cf_password: ${{secrets.CF_SERVICE_AUTH}}
- name: smoke test
run: curl --fail --silent https://dashboard-stage-datagov.app.cloud.gov/healthcheck?$(date +%s)
deploy-production:
if: github.ref == 'refs/heads/main'
name: deploy (production)
environment: production
runs-on: ubuntu-latest
needs:
- deploy-staging
steps:
- name: checkout
uses: actions/checkout@v3
- name: deploy
uses: cloud-gov/cg-cli-tools@main
with:
command: cf push dashboard --vars-file vars.production.yml --strategy rolling
cf_org: gsa-datagov
cf_space: prod
cf_username: ${{secrets.CF_SERVICE_USER}}
cf_password: ${{secrets.CF_SERVICE_AUTH}}
- name: smoke test
run: curl --fail --silent https://dashboard-prod-datagov.app.cloud.gov/healthcheck?$(date +%s)