Skip to content

Commit

Permalink
Support arm64 dedicated workflow (#841)
Browse files Browse the repository at this point in the history
* add self hosted runner to publish arm64 images

* test build with macos and ubuntu arm64

* Add docker to mac runner and remove qemu

* dedicated workflow for arm64 image

* cleaning

* ci: add a different name for workflow docker arm64

* clean workflow

* only build arm64 image and make tag configurable
  • Loading branch information
sbaizet-ledger authored Jun 21, 2024
1 parent f40dca0 commit 517e5b4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/docker-arm64.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
name: Docker
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-ubuntu
tags: scrolltech/l2geth:${{inputs.tag}}-arm64

0 comments on commit 517e5b4

Please sign in to comment.