A doc with examples of commands #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Image & Deploy Multichain Dev | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [closed] | |
branches: | |
- develop | |
paths: | |
- chain-signatures/** | |
env: | |
IMAGE: "europe-west1-docker.pkg.dev/near-cs-dev/multichain-public/multichain-dev" | |
TAG: ${{ github.sha }} | |
jobs: | |
build-mpc-recovery: | |
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' | |
runs-on: ubuntu-latest | |
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://europe-west1-docker.pkg.dev | |
env: | |
GOOGLE_CREDENTIALS: ${{ secrets.SIG_CREDENTIALS_DEV }} | |
- name: Build Docker image and push to Google Artifact Registry | |
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' | |
id: docker-push-tagged | |
uses: docker/build-push-action@v4 | |
with: | |
push: true | |
file: ./Dockerfile.multichain | |
tags: "${{ env.IMAGE }}:${{ env.TAG }},${{ env.IMAGE }}:latest" | |
deploy: | |
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' | |
runs-on: ubuntu-latest | |
needs: build-mpc-recovery | |
steps: | |
- id: 'auth' | |
uses: 'google-github-actions/auth@v2' | |
with: | |
credentials_json: '${{ secrets.SIG_CREDENTIALS_DEV }}' |