Skip to content

Support arm64 dedicated workflow #841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 21, 2024
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
Loading