Skip to content

A doc with examples of commands (#913) #25

A doc with examples of commands (#913)

A doc with examples of commands (#913) #25

name: Docker Image
on:
push:
branches:
- develop
pull_request:
paths:
- mpc-recovery/**
jobs:
build-image:
runs-on: ubuntu-latest
name: Build and Push
steps:
- name: Checkout code
uses: actions/checkout@v3
- 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_DEV }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Docker image
uses: docker/build-push-action@v4
with:
context: .
tags: us-east1-docker.pkg.dev/pagoda-discovery-platform-dev/mpc-recovery/mpc-recovery-dev:${{ github.sha }}
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Push Docker image
run: docker push us-east1-docker.pkg.dev/pagoda-discovery-platform-dev/mpc-recovery/mpc-recovery-dev:${{ github.sha }}