File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 2828 fail-fast : false
2929 matrix :
3030 alpine_version :
31+ - ' edge'
3132 - ' 3.20'
3233 - ' 3.21'
3334
4445 id : prep
4546 run : |
4647 ALPINE_VERSION="${{ matrix.alpine_version }}"
47- BUILD_ARG="${ALPINE_VERSION}"
48+ ALPINE_RELEASE=$ALPINE_VERSION
49+
50+ if [[ "$ALPINE_VERSION" != "edge" ]]; then
51+ ALPINE_RELEASE="v$ALPINE_VERSION"
52+ fi
53+
4854 IMAGE_VERSION=$(curl -s "https://api.github.com/repos/${{ github.repository }}/tags" | jq -r '.[0].name')
4955
5056 LATEST=""
5662
5763 echo "image_version=$IMAGE_VERSION" >> "$GITHUB_OUTPUT"
5864 echo "alpine_version=$ALPINE_VERSION" >> "$GITHUB_OUTPUT"
65+ echo "alpine_release=$ALPINE_RELEASE" >> "$GITHUB_OUTPUT"
5966 echo "latest=$LATEST" >> "$GITHUB_OUTPUT"
60- echo "build_arg=$BUILD_ARG" >> "$GITHUB_OUTPUT"
6167
6268 - name : Set up QEMU
6369 id : qemu
@@ -105,7 +111,7 @@ jobs:
105111 with :
106112 context : .
107113 platforms : linux/amd64,linux/arm64
108- build-args : ALPINE_VERSION=${{ steps.prep.outputs.build_arg }}
114+ build-args : ALPINE_VERSION=${{ steps.prep.outputs.alpine_version }},ALPINE_RELEASE=${{ steps.prep.outputs.alpine_release }}
109115 push : ${{ github.event_name != 'pull_request' }}
110116 labels : ${{ steps.meta.outputs.labels }}
111117 tags : ${{ steps.meta.outputs.tags }}
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ FROM alpine:${ALPINE_VERSION} AS build-stage
44
55ARG TARGETARCH
66ARG TARGETVARIANT
7- ARG ALPINE_VERSION
7+ ARG ALPINE_RELEASE
88
9- ENV REL=v${ALPINE_VERSION }
9+ ENV REL=${ALPINE_RELEASE }
1010ENV ROOTFS=/root-out
1111ENV MIRROR=http://dl-cdn.alpinelinux.org/alpine
1212ENV PACKAGES=alpine-baselayout,\
You can’t perform that action at this time.
0 commit comments