From cd455877c3b5bd6b10437e5992bde472fbb73e4a Mon Sep 17 00:00:00 2001
From: Kwangjin Lee <k.lee-5@student.tudelft.nl>
Date: Fri, 30 Aug 2024 17:36:01 +0200
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c7861ca1..028b63b6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -55,8 +55,7 @@ deploy-draft:
             "status": "success",
             "ref": "main"
           },
-          "build_id": "'$CI_JOB_ID'",
-          "build_status": "success"
+          "build_job_id": "'$CI_JOB_ID'"
         }'
   environment:
     name: draft
@@ -69,7 +68,7 @@ deploy-production:
   needs: ["build-book"]
   script:
     - |
-      curl -X POST https://mude.citg.tudelft.nl/hooks/book-deploy \
+      curl -X POST https://mude.citg.tudelft.nl/hooks/book-deploy-production \
         -H "Content-Type: application/json" \
         -H "X-Gitlab-Token: glpat-m4CzsDqHnXNn3Pf5Whyd" \
         -d '{
@@ -78,8 +77,7 @@ deploy-production:
             "status": "success",
             "ref": "publish"
           },
-          "build_id": "'$CI_JOB_ID'",
-          "build_status": "success"
+          "build_job_id": "'$CI_JOB_ID'"
         }'
   environment:
     name: production
-- 
GitLab