Skip to content

Deploy Multichain Prod. #17

Deploy Multichain Prod.

Deploy Multichain Prod. #17

name: Deploy Multichain Prod.
on:
workflow_dispatch:
inputs:
network:
type: choice
options:
- mainnet
- testnet
description: mainnet or testnet network
default: testnet
required: true
jobs:
build-mpc-recovery:
runs-on: ubuntu-latest
environment: prod
steps:
- uses: actions/checkout@v3
name: "Checkout mpc-recovery"
- name: Login to GCP Artifact Registry
run: echo "$GOOGLE_CREDENTIALS" | docker login -u _json_key --password-stdin https://us-east1-docker.pkg.dev
env:
GOOGLE_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS_PROD }}
# Since the Mainnet and Testnet nodes are polling this image repository, only the image needs to be updated in order to trigger a deployment
- name: Build Docker image and deploy partner nodes
id: docker-push-tagged-partner
uses: docker/build-push-action@v4
with:
push: true
file: ./Dockerfile.multichain
tags: "us-east1-docker.pkg.dev/pagoda-discovery-platform-prod/multichain-public/multichain-${{ github.event.inputs.network }}:latest"