Skip to content

Build Stateless Verifier Docker Image #4

Build Stateless Verifier Docker Image

Build Stateless Verifier Docker Image #4

name: Build Stateless Verifier Docker Image
on:
workflow_dispatch:
inputs:
mina_branch:
description: 'Branch of MinaProtocol/mina to build from'
required: true
default: 'sventimir/stateless-verification-tool'
dune_profile:
description: 'Dune profile to build with'
required: true
default: 'devnet'
env:
MINA_BRANCH: ${{ github.event.inputs.mina_branch }}
DUNE_PROFILE: ${{ github.event.inputs.dune_profile }}
ECR_REPOSITORY_URL: 673156464838.dkr.ecr.us-west-2.amazonaws.com
ECR_REPOSITORY_NAME: delegation-verify
jobs:
build:
runs-on: minafoundation-default-runners
steps:
- name: 📥 Checkout Mina Repository
uses: actions/checkout@v4
with:
repository: MinaProtocol/mina
ref: ${{ env.MINA_BRANCH }}
- name: 🏷️ Generate Tag
run: |
VERSION=$(grep "^version:" ./src/app/delegation_verify/delegation_verify.opam | cut -d '"' -f 2)
TAG="${VERSION}-${GITHUB_SHA}"
echo "TAG=${TAG}" >> $GITHUB_ENV
- name: 🛠️ Build and Push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: dockerfiles/Dockerfile-delegation-stateless-verifier
build-args: |
MINA_BRANCH=${{ env.MINA_BRANCH }}
DUNE_PROFILE=${{ env.DUNE_PROFILE }}
tags: ${{ env.ECR_REPOSITORY_URL }}/${{ env.ECR_REPOSITORY_NAME }}:${{ env.TAG }}
push: false