Skip to content

Commit

Permalink
[v10] Check manifest before attempting to push docker images (#15095)
Browse files Browse the repository at this point in the history
  • Loading branch information
logand22 authored Aug 1, 2022
1 parent 8b4378f commit 404ab5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,11 @@ image-ci: clean docker-binaries

.PHONY: publish-ci
publish-ci: image-ci
docker push $(DOCKER_IMAGE_STAGING):$(VERSION)
@if DOCKER_CLI_EXPERIMENTAL=enabled docker manifest inspect $(DOCKER_IMAGE_STAGING):$(VERSION) 2>&1 >/dev/null; then\
echo "$(DOCKER_IMAGE_STAGING):$(VERSION) already exists. "; \
else \
docker push $(DOCKER_IMAGE_STAGING):$(VERSION); \
fi
if [ -f e/Makefile ]; then $(MAKE) -C e publish-ci; fi

# Docker image build for Teleport Operator
Expand Down
2 changes: 1 addition & 1 deletion e
Submodule e updated from 174c1c to 918cf9

0 comments on commit 404ab5a

Please sign in to comment.