Skip to content

Commit

Permalink
Remove registry url from Dockerhub path (Yelp#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
justineyster authored and GitHub Enterprise committed Jun 21, 2021
1 parent 2de4cd2 commit 17efa19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.ibm
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ docker-publish-images: docker-login

docker-publish-image:
ifeq ($(DOCKER_REGISTRY), $(DOCKER_REGISTRY_DOCKERHUB))
docker tag $(DOCKER_DOMAIN_LOCAL)/$(IMAGE_NAME) $(DOCKER_REGISTRY)/$(DOCKERHUB_DOMAIN)/$(IMAGE_NAME):$(IMAGE_TAG)
docker push $(DOCKER_REGISTRY)/$(DOCKERHUB_DOMAIN)/$(IMAGE_NAME):$(IMAGE_TAG)
docker tag $(DOCKER_DOMAIN_LOCAL)/$(IMAGE_NAME) $(DOCKERHUB_DOMAIN)/$(IMAGE_NAME):$(IMAGE_TAG)
docker push $(DOCKERHUB_DOMAIN)/$(IMAGE_NAME):$(IMAGE_TAG)
else
docker tag $(DOCKER_DOMAIN_LOCAL)/$(IMAGE_NAME) $(DOCKER_REGISTRY)/$(DOCKER_DOMAIN)/$(IMAGE_NAME):$(IMAGE_TAG)
docker push $(DOCKER_REGISTRY)/$(DOCKER_DOMAIN)/$(IMAGE_NAME):$(IMAGE_TAG)
Expand Down

0 comments on commit 17efa19

Please sign in to comment.