Skip to content

Commit 684fe0f

Browse files
committed
chore: rework multi-arch deploy script
1 parent 03f40a0 commit 684fe0f

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

deploy_multiarch.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ IMAGES=(manylinux2014 manylinux_2_28 manylinux_2_31 manylinux_2_34 musllinux_1_2
77
podman login -u "${QUAY_USERNAME}" -p "${QUAY_PASSWORD}" quay.io
88

99
for IMAGE in "${IMAGES[@]}"; do
10-
echo "::group::${IMAGE}"
11-
LAST_TAG="$(oras repo tags --last "2025.02.23-1" "quay.io/pypa/${IMAGE}" | tail -2 | head -1)"
10+
echo "::group::${IMAGE} check"
11+
LAST_TAG="$(oras repo tags --last "2025.06.08-1" "quay.io/pypa/${IMAGE}" | tail -2 | head -1)"
1212
if [ "${LAST_TAG}" == "" ]; then
13-
LAST_TAG=2025.02.23-1
13+
LAST_TAG=2025.06.08-1
1414
fi
15-
echo "${IMAGE}: last tag is ${LAST_TAG}"
15+
echo "last tag is ${LAST_TAG}"
1616
case ${IMAGE} in
1717
manylinux_2_31) REF_IMAGE=manylinux_2_31_armv7l;;
1818
*) REF_IMAGE=${IMAGE}_x86_64;;
@@ -28,6 +28,10 @@ for IMAGE in "${IMAGES[@]}"; do
2828
fi
2929

3030
echo "${IMAGE}: adding tags ${TAGS_TO_PUSH[*]}"
31+
32+
# no nested groups in GHA
33+
echo "::endgroup::"
34+
3135
case ${IMAGE} in
3236
manylinux_2_31) ARCHS=("armv7l");;
3337
manylinux2014) ARCHS=("x86_64" "i686" "aarch64" "ppc64le" "s390x");;
@@ -37,7 +41,7 @@ for IMAGE in "${IMAGES[@]}"; do
3741

3842
LATEST_MANIFEST=
3943
for TAG_TO_PUSH in "${TAGS_TO_PUSH[@]}"; do
40-
echo "::group::${TAG_TO_PUSH}"
44+
echo "::group::${IMAGE}:${TAG_TO_PUSH}"
4145
SRC_IMAGES=()
4246
for ARCH in "${ARCHS[@]}"; do
4347
SRC_IMAGES+=("docker://quay.io/pypa/${IMAGE}_${ARCH}:${TAG_TO_PUSH}")
@@ -54,6 +58,8 @@ for IMAGE in "${IMAGES[@]}"; do
5458
fi
5559
echo "::endgroup::"
5660
done
61+
62+
echo "::group::${IMAGE}:latest"
5763
if [ "${LATEST_MANIFEST}" == "" ]; then
5864
echo "::warning ::${IMAGE}: skipping latest due to previous errors"
5965
else

0 commit comments

Comments
 (0)