From 18df2f8a332019791d6a9d948e18de83905ca051 Mon Sep 17 00:00:00 2001
From: Daya Adianto <dayaadianto@cs.ui.ac.id>
Date: Mon, 13 Nov 2023 18:22:56 +0700
Subject: [PATCH] Add debug calls into the main CI script

---
 .gitlab-ci.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e478952f..6234fcd5 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"
-- 
GitLab