Skip to content

Restrict 10x+ deposits #45

Restrict 10x+ deposits

Restrict 10x+ deposits #45

name: Build Image & Deploy Nodes to Dev
on:
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:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: "Checkout mpc"
- 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
id: docker-push-tagged
uses: docker/build-push-action@v4
with:
push: true
file: ./Dockerfile
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
steps:
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.SIG_CREDENTIALS_DEV }}'