1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-27 03:41:30 +01:00

only log into docker when password available

This commit is contained in:
Kyle Spearrin 2019-03-08 16:37:27 -05:00
parent 14ecb8af93
commit ac41feba81
2 changed files with 6 additions and 3 deletions

View File

@ -12,7 +12,6 @@ stack: node 10
install:
- sh: npm i -g gulp
- sh: echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- cmd: choco install cloc --no-progress
- cmd: "cloc --include-lang C#,SQL,Razor,\"Bourne Shell\",PowerShell,HTML,CSS,Sass,JavaScript,TypeScript --vcs git"

View File

@ -15,10 +15,14 @@ fi
echo "Prod deploy: ${PROD_DEPLOY}"
echo "Tag name: ${TAG_NAME}"
chmod +x ./build.sh
#dotnet build --configuration Debug
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