fix: login and pull on host, not inside container
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
d3fc7fca73
commit
923f9b7f3f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue