Skip to content

Commit 29ee5e3

Browse files
only build arm64 image and make tag configurable
1 parent caeeebf commit 29ee5e3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/docker-arm64.yaml

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
name: Docker-arm64
22

33
on:
4-
workflow_dispatch: {}
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: "tag of this image (suffix -arm64 is added automatically)"
8+
required: true
9+
type: string
510

611
jobs:
712
build-and-push-arm64-image:
813
runs-on: ubuntu-latest
914
strategy:
1015
matrix:
1116
arch:
12-
- amd64
1317
- aarch64
1418

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

0 commit comments

Comments
 (0)