From 5d9f0ef86f8e98a9652440aac7328d127a36f04f Mon Sep 17 00:00:00 2001 From: Beraldo Leal Date: Thu, 2 May 2024 10:44:26 -0400 Subject: [PATCH] payload: reuse supported_arches supported_arches variable is defined but not used during manifest create step. With this patch we can easly disable arches for quick development test. Signed-off-by: Beraldo Leal --- install/pre-install-payload/payload.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install/pre-install-payload/payload.sh b/install/pre-install-payload/payload.sh index 78a427c8..f2ed84f3 100755 --- a/install/pre-install-payload/payload.sh +++ b/install/pre-install-payload/payload.sh @@ -57,6 +57,7 @@ function build_payload() { tag=$(git rev-parse HEAD) + manifest_args=() for arch in "${supported_arches[@]}"; do setup_env_for_arch "${arch}" @@ -76,6 +77,7 @@ function build_payload() { --load \ . docker push "${registry}:${kernel_arch}-${tag}" + manifest_args+=(--amend "${registry}:${kernel_arch##*/}-${tag}") done purge_previous_manifests "${registry}:${tag}" @@ -83,13 +85,11 @@ function build_payload() { docker manifest create ${extra_docker_manifest_flags} \ "${registry}:${tag}" \ - --amend "${registry}:x86_64-${tag}" \ - --amend "${registry}:s390x-${tag}" + "${manifest_args[@]}" docker manifest create ${extra_docker_manifest_flags} \ "${registry}:latest" \ - --amend "${registry}:x86_64-${tag}" \ - --amend "${registry}:s390x-${tag}" + "${manifest_args[@]}" docker manifest push ${extra_docker_manifest_flags} "${registry}:${tag}" docker manifest push ${extra_docker_manifest_flags} "${registry}:latest"