Skip to content

Merge pull request #43 from Cardinal-Cryptography/A0-3207-update-alep… #45

Merge pull request #43 from Cardinal-Cryptography/A0-3207-update-alep…

Merge pull request #43 from Cardinal-Cryptography/A0-3207-update-alep… #45

name: Build, push and deploy Aleph Zero Dashboard to testnet
on:
workflow_dispatch:
push:
paths-ignore:
- '*.md'
branches:
- master
jobs:
build_and_push:
name: Build and push
runs-on: ubuntu-20.04
environment:
name: testnet
steps:
- name: GIT | Checkout
uses: actions/checkout@v3
- 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'
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@v3
- name: TESTNET | Deploy Aleph Zero Dashboard
uses: ./.github/actions/deploy
id: deploy_testnet
with:
environment: testnet
kustomize_version: ${{ vars.KUSTOMIZE_VERSION }}
image_tag: ${{ needs.build_and_push.outputs.image_tag }}
github_token: ${{ secrets.CI_GH_TOKEN }}