fix: do not add non-existent images

This commit is contained in:
Stefan Reimer 2024-10-24 14:00:18 +00:00
parent 6ef8d28d96
commit 8e202d4fba

View File

@ -60,6 +60,7 @@ push: ecr-login ## push images to registry
buildah manifest rm $(IMAGE):$$t || true; \ buildah manifest rm $(IMAGE):$$t || true; \
buildah manifest create $(IMAGE):$$t; \ buildah manifest create $(IMAGE):$$t; \
for a in $(ALL_ARCHS); do \ for a in $(ALL_ARCHS); do \
podman image exists $(REGISTRY)/$(IMAGE):$(TAG)-$$a && \
buildah manifest add $(IMAGE):$$t $(REGISTRY)/$(IMAGE):$(TAG)-$$a; \ buildah manifest add $(IMAGE):$$t $(REGISTRY)/$(IMAGE):$(TAG)-$$a; \
done; \ done; \
echo "Pushing manifest $(IMAGE):$$t" echo "Pushing manifest $(IMAGE):$$t"