use more secure approach to call docker

feat/docker-ci
JoranHonig 3 years ago committed by GitHub
parent 50e1ded4ab
commit 60861a08c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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}

Loading…
Cancel
Save