Skip to content

Commit

Permalink
Fixed docker login with password
Browse files Browse the repository at this point in the history
  • Loading branch information
gmegidish committed Mar 17, 2020
1 parent 8de8e30 commit 242d8c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-and-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ IMAGE_ID=$(docker images $TAG --format "{{.ID}}")
docker tag $IMAGE_ID "${NAME}:latest"

# Login to docker hub
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
docker login -u $DOCKER_USERNAME -p=$DOCKER_PASSWORD

# Push each tag
for T in $(docker images ${NAME} --format "{{.Tag}}");
Expand Down

0 comments on commit 242d8c8

Please sign in to comment.