Skip to content

Commit

Permalink
Merge pull request #55 from codacy/avoid-printing-docker-login
Browse files Browse the repository at this point in the history
fix: Avoid printing docker password to stdout
  • Loading branch information
lolgab authored Feb 7, 2022
2 parents 0b43e24 + 0709ab2 commit 4301d3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ clean: ## clean target directories

.PHONY: push-docker-image
push-docker-image: ## push the docker image to the registry (DOCKER_USER and DOCKER_PASS mandatory)
docker login -u $(DOCKER_USER) -p $(DOCKER_PASS) &&\
@docker login -u $(DOCKER_USER) -p $(DOCKER_PASS) &&\
docker push codacy/git-version:${VERSION}

.PHONY: push-latest-docker-image
push-latest-docker-image: ## push the docker image with the "latest" tag to the registry (DOCKER_USER and DOCKER_PASS mandatory)
docker login -u $(DOCKER_USER) -p $(DOCKER_PASS) &&\
@docker login -u $(DOCKER_USER) -p $(DOCKER_PASS) &&\
docker tag codacy/git-version:${VERSION} codacy/git-version:latest &&\
docker push codacy/git-version:latest

Expand Down

0 comments on commit 4301d3b

Please sign in to comment.