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.
This commit is contained in:
Kai Lueke 2022-10-04 14:24:28 +02:00
parent 6bfaa1d8b9
commit 00223be1c7

View File

@ -216,7 +216,9 @@ function _release_build_impl() {
sign_artifacts "${SIGNER}" "aws-${arch}/flatcar_production_ami_"*txt "aws-${arch}/flatcar_production_ami_"*json 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* copy_to_buildcache "images/${arch}/${vernum}/" "aws-${arch}/flatcar_production_ami_"*txt* "aws-${arch}/flatcar_production_ami_"*json*
done done
if [ "${vernum}" = "${sdk_version}" ]; then
publish_sdk "${docker_sdk_vernum}" publish_sdk "${docker_sdk_vernum}"
fi
echo "====" echo "===="
echo "Done, now you can copy the images to Origin" echo "Done, now you can copy the images to Origin"
echo "====" echo "===="