Skip to content

Commit

Permalink
Check manifest before attempting to push docker images (#15093)
Browse files Browse the repository at this point in the history
  • Loading branch information
logand22 authored Aug 1, 2022
1 parent 2e32065 commit 0a0eb9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# Master/dev branch: "1.0.0-dev"
VERSION=11.0.0-dev


DOCKER_IMAGE_OPERATOR_CI ?= quay.io/gravitational/teleport-operator-ci
DOCKER_IMAGE_QUAY ?= quay.io/gravitational/teleport
DOCKER_IMAGE_ECR ?= public.ecr.aws/gravitational/teleport
Expand Down Expand Up @@ -1015,7 +1014,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 ffe8c9 to 24d036

0 comments on commit 0a0eb9d

Please sign in to comment.