From df3b0acf73e884909bfacb99784d8aec761ba61b Mon Sep 17 00:00:00 2001
From: Daya Adianto <dayaadianto@cs.ui.ac.id>
Date: Fri, 10 Nov 2023 20:47:47 +0700
Subject: [PATCH] Try to fix multi-line shell commands in the deployment CI job

---
 .gitlab-ci.yml | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 40914893..5a7f22f9 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"
-- 
GitLab