From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 61B26158083 for ; Sun, 8 Sep 2024 22:47:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5A2F4E2A49; Sun, 8 Sep 2024 22:47:23 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 39300E2A49 for ; Sun, 8 Sep 2024 22:47:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 50ECE3430AB for ; Sun, 8 Sep 2024 22:47:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A64DE1E93 for ; Sun, 8 Sep 2024 22:47:20 +0000 (UTC) From: "John Helmert III" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "John Helmert III" Message-ID: <1725835572.a69d311841dc26c1d951e590f8464f8530a134f9.ajak@gentoo> Subject: [gentoo-commits] proj/docker-images:master commit in: / X-VCS-Repository: proj/docker-images X-VCS-Files: deploy-manifests.sh X-VCS-Directories: / X-VCS-Committer: ajak X-VCS-Committer-Name: John Helmert III X-VCS-Revision: a69d311841dc26c1d951e590f8464f8530a134f9 X-VCS-Branch: master Date: Sun, 8 Sep 2024 22:47:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 76f4a856-d498-4dcd-9ba2-72ab387500a7 X-Archives-Hash: 3bcacc3ce47b3de76d1bfe5f82ae2560 commit: a69d311841dc26c1d951e590f8464f8530a134f9 Author: Konstantinos Smanis gmail com> AuthorDate: Sun Jul 28 07:18:54 2024 +0000 Commit: John Helmert III gentoo org> CommitDate: Sun Sep 8 22:46:12 2024 +0000 URL: https://gitweb.gentoo.org/proj/docker-images.git/commit/?id=a69d3118 refactor: simplify `deploy-manifests.sh` Closes: https://github.com/gentoo/gentoo-docker-images/pull/142 Signed-off-by: John Helmert III gentoo.org> deploy-manifests.sh | 50 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 33 insertions(+), 17 deletions(-) diff --git a/deploy-manifests.sh b/deploy-manifests.sh index 08bc158..270f8d2 100755 --- a/deploy-manifests.sh +++ b/deploy-manifests.sh @@ -12,23 +12,39 @@ VERSION=${VERSION:-$(date -u +%Y%m%d)} ORG=${ORG:-gentoo} -declare -A MANIFEST_TAGS=( - [stage3:latest]="amd64-openrc;armv5tel-openrc;armv6j_hardfp-openrc;armv7a_hardfp-openrc;arm64-openrc;i686-openrc;ppc64le-openrc;rv64_lp64d-openrc;s390x" - [stage3:desktop]="amd64-desktop-openrc;arm64-desktop-openrc" - [stage3:hardened]="amd64-hardened-openrc;i686-hardened-openrc" - [stage3:hardened-nomultilib]="amd64-hardened-nomultilib-openrc" - [stage3:musl]="amd64-musl;armv7a_hardfp_musl-openrc;arm64-musl;i686-musl" - [stage3:musl-hardened]="amd64-musl-hardened;arm64-musl-hardened;ppc64le-musl-hardened-openrc" - [stage3:nomultilib]="amd64-nomultilib-openrc" - [stage3:nomultilib-systemd]="amd64-nomultilib-systemd" - [stage3:systemd]="amd64-systemd;armv5tel-systemd;armv6j_hardfp-systemd;armv7a_hardfp-systemd;arm64-systemd;i686-systemd;ppc64le-systemd;rv64_lp64d-systemd" -) - -IFS=';' read -ra TAGS <<< "${MANIFEST_TAGS[${TARGET}]}" -if [[ -z "${TAGS+x}" ]]; then - echo "Done! No manifests to push for TARGET=${TARGET}." - exit 0 -fi +case "${TARGET}" in + "stage3:latest") + TAGS=("amd64-openrc" "armv5tel-openrc" "armv6j_hardfp-openrc" "armv7a_hardfp-openrc" "arm64-openrc" "i686-openrc" "ppc64le-openrc" "rv64_lp64d-openrc" "s390x") + ;; + "stage3:desktop") + TAGS=("amd64-desktop-openrc" "arm64-desktop-openrc") + ;; + "stage3:hardened") + TAGS=("amd64-hardened-openrc" "i686-hardened-openrc") + ;; + "stage3:hardened-nomultilib") + TAGS=("amd64-hardened-nomultilib-openrc") + ;; + "stage3:musl") + TAGS=("amd64-musl" "armv7a_hardfp_musl-openrc" "arm64-musl" "i686-musl") + ;; + "stage3:musl-hardened") + TAGS=("amd64-musl-hardened" "arm64-musl-hardened" "ppc64le-musl-hardened-openrc") + ;; + "stage3:nomultilib") + TAGS=("amd64-nomultilib-openrc") + ;; + "stage3:nomultilib-systemd") + TAGS=("amd64-nomultilib-systemd") + ;; + "stage3:systemd") + TAGS=("amd64-systemd" "armv5tel-systemd" "armv6j_hardfp-systemd" "armv7a_hardfp-systemd" "arm64-systemd" "i686-systemd" "ppc64le-systemd" "rv64_lp64d-systemd") + ;; + *) + echo "Done! No manifests to push for TARGET=${TARGET}." + exit 0 + ;; +esac MANIFEST="${TARGET}" # Latest manifests