diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 40914893a4787d6e60f2bf3788d11c4f4de6c4a1..5a7f22f914d413672553661d1ae4a946bbe39ed5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -87,15 +87,15 @@ deploy: DOKKU_SSH_REMOTE: "ssh://dokku@dokku-ppl.cs.ui.ac.id:22" DOKKU_SSH_PRIVATE_KEY: $PRODUCTION_SSH_PRIVATE_KEY script: - - dokku network:exists "${APP_NAME}-network" - || dokku network:create "${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" - - dokku apps:exists "$APP_NAME" - || dokku apps:create "$APP_NAME" + - dokku network:exists "${APP_NAME}-network" || + dokku network:create "${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" + - 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" - dokku config:set "$APP_NAME" SPRING_PROFILES_ACTIVE="default,csui"