diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e478952f5278723404056c6a16c12d72726fd5f6..6234fcd56ce1edd6593277157fe7c2b83785a47f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -86,11 +86,15 @@ deploy: SSH_REMOTE: "ssh://dokku@dokku-ppl.cs.ui.ac.id:22" SSH_PRIVATE_KEY: $PRODUCTION_SSH_PRIVATE_KEY script: + - echo "[DEBUG] APP_NAME is $APP_NAME" + - echo "[DEBUG] SSH_REMOTE is $SSH_REMOTE" - dokku network:exists "${APP_NAME}-network" || dokku network:create "${APP_NAME}-network" + - echo "[DEBUG] Created Docker network ${APP_NAME}-network" - dokku postgres:exists "${APP_NAME}-database" || dokku postgres:create "${APP_NAME}-database" \ --image docker.io/library/postgres \ --image-version 16.0-alpine \ --post-create-network "${APP_NAME}-network" + - echo "[DEBUG] Created PostgresSQL instance ${APP_NAME}-database" - dokku apps:exists "$APP_NAME" || dokku apps:create "$APP_NAME" - dokku network:set "$APP_NAME" attach-post-create "${APP_NAME}-network" - dokku postgres:link "${APP_NAME}-database" "$APP_NAME"