Skip to content

Commit

Permalink
Publish docker image, fixes for tests of 128/160/256 bit numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zk committed Sep 6, 2024
1 parent 0eb5021 commit 929ee55
Show file tree
Hide file tree
Showing 45 changed files with 991 additions and 181 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/target
.git/
69 changes: 69 additions & 0 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Publish docker image

on:
workflow_dispatch:
inputs:
image_tag:
description: 'Image (to be built/pushed) tag (default: latest)'
default: "latest"
type: string
required: false
ref_to_geth:
description: 'Branch, tag or commit SHA1 to checkout fhevm-backend'
required: true
default: "main"
type: string

env:
DOCKER_IMAGE: ghcr.io/zama-ai/coprocessor

jobs:
push_to_registry:
name: Push Docker image to GitHub Container Registry
runs-on: ubuntu-latest
permissions:
packages: write
steps:
# space wasn't enough at some point
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be

- name: Check out repo
uses: actions/checkout@v4
with:
token: ${{ secrets.SUBMODULES_CHECKOUT_TOKEN }}
ref: ${{ inputs.ref_to_geth }}
lfs: true
submodules: recursive

- name: Check OS
run: |
lscpu
uname -r
lsb_release -a
- name: Login to GitHub Container Registry
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: List files in the repository
run: |
ls ${{ github.workspace }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: fhevm-engine/coprocessor/Dockerfile
push: true
pull: true
platforms: linux/amd64,linux/arm64
tags: ${{ env.DOCKER_IMAGE }}:${{ inputs.image_tag }},${{ env.DOCKER_IMAGE }}:latest

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 929ee55

Please sign in to comment.