Skip to content

Commit

Permalink
payload: reuse supported_arches
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
beraldoleal committed May 2, 2024
1 parent 6d40cf0 commit 1923189
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install/pre-install-payload/payload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand All @@ -76,20 +77,19 @@ function build_payload() {
--load \
.
docker push "${registry}:${kernel_arch}-${tag}"
manifest_args+=(--amend "${registry}:${kernel_arch##*/}-${tag}")
done

purge_previous_manifests "${registry}:${tag}"
purge_previous_manifests "${registry}:latest"

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"
Expand Down

0 comments on commit 1923189

Please sign in to comment.