You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ci): skip qemu image build if version already exists in ECR
Add check to prevent rebuilding existing images in ECR repository. The workflow now
verifies if an image with the current version tag exists before proceeding with the
build and publish process.
if aws ecr describe-images --repository-name $REPOSITORY --image-ids imageTag=$VERSION --region $AWS_REGION 2>/dev/null; then
52
+
echo "::notice title=Qemu image::Image with tag $VERSION already exists. Skipping build. Please update the version in ansible/vars.yml if you want to upload a new image."
53
+
echo "image_exists=true" >> $GITHUB_OUTPUT
54
+
else
55
+
echo "Image with tag $VERSION does not exist. Proceeding with build."
0 commit comments