fix: login and pull on host, not inside container
continuous-integration/drone/push Build is passing Details

This commit is contained in:
knoflook 2022-03-21 14:11:09 +00:00
parent d3fc7fca73
commit 923f9b7f3f
1 changed files with 2 additions and 2 deletions

View File

@ -66,8 +66,8 @@ run_stack_deploy() {
if [[ ! -z "${PLUGIN_REG_USER}" ]] && [[ ! -z "${PLUGIN_REG_PASS}" ]]; then
echo "--- discovered secrets, assuming private registry, logging in ---"
docker login -u "${PLUGIN_REG_USER}" -p "${PLUGIN_REG_PASS}"
docker pull "${PLUGIN_IMAGE}"
docker -H "$REMOTE_DOCKER_HOST" login -u "${PLUGIN_REG_USER}" -p "${PLUGIN_REG_PASS}"
docker -H "$REMOTE_DOCKER_HOST" pull "${PLUGIN_IMAGE}"
echo "${PLUGIN_IMAGE}"
docker -H "$REMOTE_DOCKER_HOST" stack deploy -c "$PLUGIN_COMPOSE" "$PLUGIN_STACK"
else