Login to docker before building image (#1067)

This commit is contained in:
WithoutPants
2021-01-19 11:11:10 +11:00
committed by GitHub
parent 1e04deb3d4
commit 093b997eb1

View File

@@ -3,7 +3,7 @@
DOCKER_TAG=$1
# must build the image from dist directory
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker build -t stashapp/stash:$DOCKER_TAG -f ./docker/ci/x86_64/Dockerfile ./dist
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push stashapp/stash:$DOCKER_TAG