fix: if they're not missing, run this

main
cellarspoon 2022-01-05 11:49:44 +01:00
parent 3fde5ef21a
commit 0ed35c1a0d
No known key found for this signature in database
GPG Key ID: 03789458B3D0C410
1 changed files with 1 additions and 1 deletions

View File

@ -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"