Skip to content

Commit eaaed9d

Browse files
authored
dual build edge + stable
1 parent b61f59e commit eaaed9d

File tree

1 file changed

+34
-5
lines changed

1 file changed

+34
-5
lines changed

.github/workflows/build_alpine_base_mimalloc.yaml

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
#Repo
4848
mkdir -p "/tmp" && pushd "/tmp" >/dev/null 2>&1
4949
git clone --filter="blob:none" --depth="1" "https://github.com/pkgforge-dev/alpine-base-mimalloc"
50-
sed '/^FROM/c\FROM alpine:edge' -i "./alpine-base-mimalloc/Dockerfile"
5150
popd >/dev/null 2>&1
5251
continue-on-error: true
5352

@@ -73,16 +72,46 @@ jobs:
7372
username: "${{ github.actor }}"
7473
password: "${{ secrets.GITHUB_TOKEN }}"
7574

76-
#https://hub.docker.com/r/pkgforge/alpine-base-mimalloc
77-
- name: Docker Build and Push (alpine-base-mimalloc)
75+
- name: Switch to Edge
76+
run: |
77+
#Presets
78+
set +x ; set +e
79+
#--------------#
80+
sed '/^FROM/c\FROM alpine:edge' -i "/tmp/alpine-base-mimalloc/Dockerfile"
81+
continue-on-error: true
82+
83+
#https://hub.docker.com/r/pkgforge/alpine-base-mimalloc [edge]
84+
- name: Docker Build and Push (alpine-base-mimalloc:edge)
85+
uses: docker/build-push-action@v6
86+
with:
87+
context: "/tmp/alpine-base-mimalloc"
88+
platforms: "linux/amd64,linux/arm64"
89+
tags: |
90+
pkgforge/alpine-base-mimalloc:edge
91+
pkgforge/alpine-base-mimalloc:${{ env.DOCKER_TAG }}
92+
${{ env.GHCR_NAME }}:edge
93+
${{ env.GHCR_NAME }}:${{ env.DOCKER_TAG }}
94+
push: true
95+
continue-on-error: true
96+
97+
- name: Switch to Stable
98+
run: |
99+
#Presets
100+
set +x ; set +e
101+
#--------------#
102+
sed '/^FROM/c\FROM alpine:stable' -i "/tmp/alpine-base-mimalloc/Dockerfile"
103+
continue-on-error: true
104+
105+
#https://hub.docker.com/r/pkgforge/alpine-base-mimalloc [stable]
106+
- name: Docker Build and Push (alpine-base-mimalloc:stable)
78107
uses: docker/build-push-action@v6
79108
with:
80109
context: "/tmp/alpine-base-mimalloc"
81110
platforms: "linux/amd64,linux/arm64"
82111
tags: |
83-
pkgforge/alpine-base-mimalloc:latest
112+
pkgforge/alpine-base-mimalloc:stable
84113
pkgforge/alpine-base-mimalloc:${{ env.DOCKER_TAG }}
85-
${{ env.GHCR_NAME }}:latest
114+
${{ env.GHCR_NAME }}:stable
86115
${{ env.GHCR_NAME }}:${{ env.DOCKER_TAG }}
87116
push: true
88117
continue-on-error: true

0 commit comments

Comments
 (0)