forked from polkadot-cloud/polkadot-staking-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (43 loc) · 1.34 KB
/
build-and-deploy-to-devnet.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
name: Build, push and deploy Aleph Zero Dashboard to devnet
on:
workflow_dispatch:
# remove before merge
push:
branches:
- A0-3351
jobs:
build-and-push:
name: Build and push
runs-on: ubuntu-20.04
environment:
name: devnet
steps:
- name: GIT | Checkout
uses: actions/checkout@v3
- name: Build and push devnet image
uses: ./.github/actions/build-and-push
id: build-devnet
with:
environment: devnet
build_envs: 'VITE_DISABLE_MAINNET=1 VITE_DISABLE_TESTNET=1 VITE_DISABLE_FIAT=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-devnet.outputs.image_tag }}
deploy-to-devnet:
name: Deploy to devnet
runs-on: ubuntu-20.04
needs: [build-and-push]
environment:
name: devnet
steps:
- name: GIT | Checkout
uses: actions/checkout@v3
- name: Deploy Aleph Zero Dashboard to Devnet
uses: ./.github/actions/deploy
id: deploy-devnet
with:
environment: devnet
kustomize_version: ${{ vars.KUSTOMIZE_VERSION }}
image_tag: ${{ needs.build-and-push.outputs.image_tag }}
github_token: ${{ secrets.CI_GH_TOKEN }}