fix: if they're not missing, run this
parent
3fde5ef21a
commit
0ed35c1a0d
|
@ -64,7 +64,7 @@ output_versions(){
|
|||
run_stack_deploy() {
|
||||
echo "--- start deploy ---"
|
||||
|
||||
if [[ -z "${PLUGIN_REG_USER}" ]] && [[ -z "${PLUGIN_REG_PASS}" ]]; then
|
||||
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 -H "$REMOTE_DOCKER_HOST" stack deploy -c "$PLUGIN_COMPOSE" "$PLUGIN_STACK"
|
||||
|
|
Loading…
Reference in New Issue