-
Notifications
You must be signed in to change notification settings - Fork 16
60 lines (53 loc) · 1.66 KB
/
staging-deploy.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
name: Deploy Altair and Staging
on:
release:
types:
- prereleased
concurrency:
# Cancel any staging or prod deployment on-going
# in favor of this new pre-release
group: production-deployment
cancel-in-progress: true
jobs:
app-staging:
strategy:
fail-fast: false
matrix:
deploy_to: ["altair", "staging"]
uses: ./.github/workflows/centrifuge-app.yml
secrets: inherit
with:
deploy_env: ${{ matrix.deploy_to }}
pinning-staging:
strategy:
fail-fast: false
matrix:
deploy_to: ["altair", "staging"]
uses: ./.github/workflows/pinning-api.yml
secrets: inherit
with:
deploy_env: ${{ matrix.deploy_to }}
onboarding-staging:
strategy:
fail-fast: false
matrix:
deploy_to: ["altair", "staging"]
uses: ./.github/workflows/onboarding-api.yml
secrets: inherit
with:
deploy_env: ${{ matrix.deploy_to }}
staging-slack-notify:
needs: app-staging
runs-on: ubuntu-latest
steps:
- name: Notify staging deploy
uses: rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_MESSAGE: |
app.altair.centrifuge.io and app.staging.centrifuge.io updated by GH actions job
Check out the new pre-release -> https://github.com/centrifuge/apps/releases/
SLACK_USERNAME: "Centrifuge GHA Bot"
SLACK_ICON: "https://centrifuge.io/favicon.ico"
SLACK_TITLE: "Centrifuge app has been deployed in staging and Altair."
SLACK_FOOTER: "Automatic message from centrifuge/apps repository Actions"