Skip to content

Merge pull request #271 from EspressoSystems/fix/deployment-script #306

Merge pull request #271 from EspressoSystems/fix/deployment-script

Merge pull request #271 from EspressoSystems/fix/deployment-script #306

Workflow file for this run

name: Postgres zkevm-prover docker
on:
push:
branches:
- main
- release-*
tags:
# YYYYMMDD
- "20[0-9][0-9][0-1][0-9][0-3][0-9]*"
pull_request:
branches:
workflow_dispatch:
jobs:
zkevm-prover:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Github Container Repo
uses: docker/login-action@v2
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
#
# ZKEVM Prover Docker
#
- name: Generate docker metadata
uses: docker/metadata-action@v4
id: prover-metadata
with:
images: ghcr.io/${{ github.repository_owner }}/espresso-polygon-zkevm-demo/zkevm-prover
- name: Build and push zkevm-prover docker
uses: docker/build-push-action@v4
with:
context: ./
file: ./docker/prover.Dockerfile
# zkevm isn't available in arm64 currently :(
# platforms: linux/amd64,linux/arm64
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.prover-metadata.outputs.tags }}
labels: ${{ steps.prover-metadata.outputs.labels }}
#
# ZKEVM Permissionless Node Docker
#
- name: Generate docker metadata
uses: docker/metadata-action@v4
id: node-metadata
with:
images: ghcr.io/${{ github.repository_owner }}/espresso-polygon-zkevm-demo/zkevm-node
- name: Build and push zkevm-node docker
uses: docker/build-push-action@v4
with:
context: ./
file: ./docker/node.Dockerfile
# zkevm isn't available in arm64 currently :(
# platforms: linux/amd64,linux/arm64
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.node-metadata.outputs.tags }}
labels: ${{ steps.node-metadata.outputs.labels }}