From 093b997eb1926045b6f2ef2e2c04341f208f99b1 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Tue, 19 Jan 2021 11:11:10 +1100 Subject: [PATCH] Login to docker before building image (#1067) --- docker/ci/x86_64/docker_push.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/ci/x86_64/docker_push.sh b/docker/ci/x86_64/docker_push.sh index 771ea8786..e8b103fac 100644 --- a/docker/ci/x86_64/docker_push.sh +++ b/docker/ci/x86_64/docker_push.sh @@ -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