Skip to content

Commit

Permalink
only build arm64 image and make tag configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaizet-ledger committed Jun 20, 2024
1 parent caeeebf commit 29ee5e3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/docker-arm64.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
name: Docker-arm64

on:
workflow_dispatch: {}
workflow_dispatch:
inputs:
tag:
description: "tag of this image (suffix -arm64 is added automatically)"
required: true
type: string

jobs:
build-and-push-arm64-image:
runs-on: ubuntu-latest
strategy:
matrix:
arch:
- amd64
- aarch64

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up QEMU
if: matrix.arch == 'aarch64'
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name multiarch --driver docker-container --use
Expand All @@ -35,4 +38,4 @@ jobs:
context: .
file: Dockerfile
push: true
tags: scrolltech/l2geth:${{github.ref_name}}-arm64
tags: scrolltech/l2geth:${{inputs.tag}}-arm64

0 comments on commit 29ee5e3

Please sign in to comment.