forked from polkadot-cloud/polkadot-staking-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 7
64 lines (57 loc) · 2.01 KB
/
build-and-deploy-to-testnet.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build, push and deploy Aleph Zero Dashboard to testnet
on:
workflow_dispatch:
jobs:
build-and-push:
name: Build and push
runs-on: ubuntu-20.04
environment:
name: testnet
steps:
- name: GIT | Checkout
uses: actions/checkout@v4
- name: DOCKER | Build and push testnet image
uses: ./.github/actions/build-and-push
id: build_testnet
with:
environment: testnet
build_envs: 'VITE_DISABLE_MAINNET=1 VITE_DISABLE_FIAT=1 VITE_DISABLE_DEVNET=1'
aws_mainnet_access_key_id: ${{ secrets.AWS_MAINNET_ACCESS_KEY_ID }}
aws_mainnet_secret_access_key: ${{ secrets.AWS_MAINNET_SECRET_ACCESS_KEY }}
outputs:
image_tag: ${{ steps.build_testnet.outputs.image_tag }}
deploy-to-testnet:
name: Deploy to testnet
runs-on: ubuntu-20.04
needs: [build-and-push]
environment:
name: testnet
steps:
- name: GIT | Checkout
uses: actions/checkout@v4
- name: TESTNET | Deploy Aleph Zero Dashboard
uses: ./.github/actions/deploy
id: deploy-testnet
with:
environment: testnet
kustomize_version: ${{ vars.KUSTOMIZE_VERSION }}
autocommit-author: ${{ secrets.AUTOCOMMIT_AUTHOR }}
autocommit-email: ${{ secrets.AUTOCOMMIT_EMAIL }}
autocommit-gpg-key-b64: ${{ secrets.AUTOCOMMIT_GPG_KEY_B64 }}
autocommit-gpg-key-fingerprint: ${{ secrets.AUTOCOMMIT_GPG_KEY_FINGERPRINT }}
image_tag: ${{ needs.build-and-push.outputs.image_tag }}
github_token: ${{ secrets.CI_GH_TOKEN }}
slack-notification:
name: Slack notification
runs-on: ubuntu-20.04
needs: [deploy-to-testnet]
if: always()
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Send Slack message
uses: Cardinal-Cryptography/github-actions/slack-notification@v6
with:
notify-on: "always"
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_INCOMING_WEBHOOK_DEV_ONDUTY }}