1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

only log into docker when password available

This commit is contained in:
Kyle Spearrin
2019-03-08 16:38:21 -05:00
parent 526df6e41a
commit 60039de67d
2 changed files with 5 additions and 1 deletions

View File

@@ -15,6 +15,11 @@ fi
echo "Prod deploy: ${PROD_DEPLOY}"
echo "Tag name: ${TAG_NAME}"
if [ "${DOCKER_USERNAME}" != "" -a "${DOCKER_PASSWORD}" != "" ]
then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
fi
chmod +x ./build.sh
./build.sh
./build.sh tag dev