Skip to content

Commit 1a6dcc7

Browse files
committed
test
1 parent 6cbe8e2 commit 1a6dcc7

File tree

3 files changed

+33
-12
lines changed

3 files changed

+33
-12
lines changed

.github/workflows/build_gh_runner_images.yaml

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,23 @@ permissions:
2020
#------------------------------------------------------------------------------------#
2121
jobs:
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:

Github/Runners/alpine-builder.dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# syntax=docker/dockerfile:1
22
#------------------------------------------------------------------------------------#
33
#https://hub.docker.com/r/pkgforge/alpine-builder
4-
FROM alpine:edge
4+
#FROM alpine:edge
5+
ARG ARCH
6+
FROM "ghcr.io/pkgforge/devscripts/alpine:${ARCH}"
57
#------------------------------------------------------------------------------------#
68
##Bad Deps
79
RUN <<EOS

Github/Runners/debian-builder-unstable.dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# syntax=docker/dockerfile:1
22
#------------------------------------------------------------------------------------#
33
#https://hub.docker.com/r/pkgforge/debian-builder-unstable
4-
FROM debian:unstable
4+
#FROM debian:unstable
5+
ARG ARCH
6+
FROM "ghcr.io/pkgforge/devscripts/debian:${ARCH}"
57
#------------------------------------------------------------------------------------#
68
##Base Deps
79
ENV DEBIAN_FRONTEND="noninteractive"

0 commit comments

Comments
 (0)