@@ -20,8 +20,23 @@ permissions:
2020# ------------------------------------------------------------------------------------#
2121jobs :
2222 build-push-docker-alpine :
23- name : Push (Alpine) --> Docker Hub
24- runs-on : ubuntu-latest
23+ name : Push (Alpine:${{ matrix.arch }}) --> Docker Hub
24+ runs-on : ${{ matrix.runner }}
25+ strategy :
26+ matrix :
27+ include :
28+ - arch : aarch64
29+ platform : arm64
30+ runner : ubuntu-24.04-arm
31+ - arch : loongarch64
32+ platform : loong64
33+ runner : ubuntu-latest
34+ - arch : riscv64
35+ platform : riscv64
36+ runner : ubuntu-latest
37+ - arch : x86_64
38+ platform : amd64
39+ runner : ubuntu-latest
2540
2641 steps :
2742 - name : Checkout repository
@@ -73,20 +88,22 @@ jobs:
7388 username : " ${{ github.actor }}"
7489 password : " ${{ secrets.GITHUB_TOKEN }}"
7590 continue-on-error : true
76-
91+
7792 # https://hub.docker.com/r/pkgforge/alpine-builder
78- - name : Docker Build and Push (alpine-builder)
93+ - name : Docker Build and Push (alpine-builder:${{ matrix.arch }} )
7994 uses : docker/build-push-action@v6
8095 with :
8196 context : /tmp/DOCKERFILES/
8297 file : " /tmp/DOCKERFILES/alpine-builder.dockerfile"
83- platforms : " linux/amd64,linux/arm64,linux/riscv64"
98+ platforms : " linux/${{ matrix.platform }}"
99+ build-args : |
100+ ARCH=${{ matrix.arch }}
84101 tags : |
85- pkgforge/alpine-builder:latest
86- pkgforge/alpine-builder:latest -${{ env.DOCKER_TAG }}
87- ghcr.io/pkgforge/devscripts/alpine-builder:latest
88- ghcr.io/pkgforge/devscripts/alpine-builder:latest -${{ env.DOCKER_TAG }}
89- push : true
102+ pkgforge/alpine-builder:${{ matrix.arch }}
103+ pkgforge/alpine-builder:${{ matrix.arch }} -${{ env.DOCKER_TAG }}
104+ ghcr.io/pkgforge/devscripts/alpine-builder:${{ matrix.arch }}
105+ ghcr.io/pkgforge/devscripts/alpine-builder:${{ matrix.arch }} -${{ env.DOCKER_TAG }}
106+ outputs : type=registry,compression=zstd,compression-level=22
90107 continue-on-error : true
91108# ------------------------------------------------------------------------------------#
92109# build-push-docker-alpine-mimalloc-edge:
0 commit comments