Skip to content

Commit bf85168

Browse files
committed
ci: Use native ARM64 runner for CI instead of QEMU
1 parent ec6b3ab commit bf85168

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

.github/workflows/build-and-push.yaml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,33 @@ on:
99
- cron: '0 0 * * *'
1010

1111
jobs:
12-
docker:
13-
runs-on: ubuntu-latest
12+
build:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
include:
17+
- platform: linux/amd64
18+
os: ubuntu-latest
19+
- platform: linux/arm64
20+
os: ubuntu-24.04-arm
21+
runs-on: ${{ matrix.os }}
1422
steps:
15-
-
16-
name: Set up QEMU
17-
uses: docker/setup-qemu-action@v2
18-
-
19-
name: Set up Docker Buildx
20-
uses: docker/setup-buildx-action@v2
21-
-
22-
name: Login to Docker Hub
23-
uses: docker/login-action@v2
23+
- name: Login to Docker Hub
24+
uses: docker/login-action@v3
2425
with:
2526
username: ${{ secrets.DOCKERHUB_USERNAME }}
2627
password: ${{ secrets.DOCKERHUB_TOKEN }}
27-
-
28-
name: Build and push
29-
uses: docker/build-push-action@v3
28+
29+
- name: Set up Docker Buildx
30+
uses: docker/setup-buildx-action@v3
31+
32+
- name: Build and push by digest
33+
id: build
34+
uses: docker/build-push-action@v6
3035
with:
36+
platforms: ${{ matrix.platform }}
3137
pull: true
3238
push: true
33-
platforms: linux/amd64,linux/arm64
3439
tags: frolvlad/alpine-glibc:latest,frolvlad/alpine-glibc:alpine-3.21_glibc-2.41,frolvlad/alpine-glibc:alpine-3_glibc-2.41,frolvlad/alpine-glibc:alpine-3.21,frolvlad/alpine-glibc:alpine-3,frolvlad/alpine-glibc:glibc-2.41
3540
cache-from: type=registry,ref=frolvlad/alpine-glibc:latest
3641
cache-to: type=inline

0 commit comments

Comments
 (0)