From 00223be1c7c71c2a9d47d469370a1b4bf74371ef Mon Sep 17 00:00:00 2001 From: Kai Lueke Date: Tue, 4 Oct 2022 14:24:28 +0200 Subject: [PATCH] ci-automation/release: Only upload SDK if a new one was built A release includes an SDK if its SDK version is the release version. Only then we need to upload a new SDK container image. --- ci-automation/release.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci-automation/release.sh b/ci-automation/release.sh index 5d8fa263a9..1433b05853 100644 --- a/ci-automation/release.sh +++ b/ci-automation/release.sh @@ -216,7 +216,9 @@ function _release_build_impl() { sign_artifacts "${SIGNER}" "aws-${arch}/flatcar_production_ami_"*txt "aws-${arch}/flatcar_production_ami_"*json copy_to_buildcache "images/${arch}/${vernum}/" "aws-${arch}/flatcar_production_ami_"*txt* "aws-${arch}/flatcar_production_ami_"*json* done - publish_sdk "${docker_sdk_vernum}" + if [ "${vernum}" = "${sdk_version}" ]; then + publish_sdk "${docker_sdk_vernum}" + fi echo "====" echo "Done, now you can copy the images to Origin" echo "===="