Skip to content

Commit 77fdbc8

Browse files
authored
use more secure approach to call docker (#1614)
1 parent 50e1ded commit 77fdbc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker_build_and_deploy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ LATEST_TAG=${NAME}:latest
1717
docker build -t ${VERSION_TAG} .
1818
docker tag ${VERSION_TAG} ${LATEST_TAG}
1919

20-
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
20+
echo "$DOCKERHUB_PASSWORD" | docker login -u $DOCKERHUB_USERNAME --password-stdin
2121

2222
docker push ${VERSION_TAG}
2323
docker push ${LATEST_TAG}

0 commit comments

Comments
 (0)