From 60861a08c1816634940992a5d693a929901d3153 Mon Sep 17 00:00:00 2001 From: JoranHonig Date: Fri, 1 Apr 2022 14:15:48 +0200 Subject: [PATCH] use more secure approach to call docker --- docker_build_and_deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker_build_and_deploy.sh b/docker_build_and_deploy.sh index 1a70d9e0..08f66f3e 100755 --- a/docker_build_and_deploy.sh +++ b/docker_build_and_deploy.sh @@ -17,7 +17,7 @@ LATEST_TAG=${NAME}:latest docker build -t ${VERSION_TAG} . docker tag ${VERSION_TAG} ${LATEST_TAG} -docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD +echo "$DOCKERHUB_PASSWORD" | docker login -u $DOCKERHUB_USERNAME --password-stdin docker push ${VERSION_TAG} docker push ${LATEST_TAG}