fix create manifest
This commit is contained in:
parent
f2ce469018
commit
b6402d47d8
@ -26,16 +26,24 @@ if ! docker manifest inspect ${IMAGE_AMD64} &>/dev/null || ! docker manifest ins
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create the multi-architecture manifest for the commit ID
|
# 🛑 Remove the old multi-architecture manifest to prevent duplicates
|
||||||
echo "📜 Creating multi-architecture manifest for ${COMMIT_ID}..."
|
echo "🗑️ Removing existing manifest list for ${IMAGE_MULTI} (if exists)..."
|
||||||
docker manifest create ${IMAGE_MULTI} ${IMAGE_AMD64} ${IMAGE_ARM64} --amend
|
docker manifest rm ${IMAGE_MULTI} || true # Ignore errors if it doesn’t exist
|
||||||
|
|
||||||
# Push the multi-arch manifest for the commit ID
|
echo "🗑️ Removing existing manifest list for ${IMAGE_LATEST} (if exists)..."
|
||||||
|
docker manifest rm ${IMAGE_LATEST} || true # Ignore errors if it doesn’t exist
|
||||||
|
|
||||||
|
# 🏗️ Create the new multi-architecture manifest
|
||||||
|
echo "📜 Creating new multi-architecture manifest for ${COMMIT_ID}..."
|
||||||
|
docker manifest create ${IMAGE_MULTI} ${IMAGE_AMD64} ${IMAGE_ARM64}
|
||||||
|
|
||||||
|
# 🚀 Push the multi-arch manifest for the commit ID
|
||||||
docker manifest push ${IMAGE_MULTI}
|
docker manifest push ${IMAGE_MULTI}
|
||||||
echo "✅ Successfully pushed multi-arch manifest: ${IMAGE_MULTI}"
|
echo "✅ Successfully pushed multi-arch manifest: ${IMAGE_MULTI}"
|
||||||
|
|
||||||
# Create and push the latest multi-architecture manifest
|
# 🔄 Create and push the latest multi-architecture manifest
|
||||||
echo "🔄 Updating latest multi-architecture manifest..."
|
echo "📜 Creating new latest multi-architecture manifest..."
|
||||||
docker manifest create ${IMAGE_LATEST} ${IMAGE_AMD64} ${IMAGE_ARM64} --amend
|
docker manifest create ${IMAGE_LATEST} ${IMAGE_AMD64} ${IMAGE_ARM64}
|
||||||
docker manifest push ${IMAGE_LATEST}
|
docker manifest push ${IMAGE_LATEST}
|
||||||
echo "✅ Successfully updated latest manifest: ${IMAGE_LATEST}"
|
echo "✅ Successfully updated latest manifest: ${IMAGE_LATEST}"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user