From a6bc013f006cc8cc8b7bd137a8fcca7570012483 Mon Sep 17 00:00:00 2001 From: Imran Hussain Date: Wed, 22 Dec 2021 19:44:45 +0000 Subject: [PATCH 1/2] Try and make CD fails more clear --- .gitlab-ci.yml | 2 +- public/pull.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6c09145..7b7ce80 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,7 +26,7 @@ deploy-live: script: - apt update - apt install -y curl - - curl https://sso.sucs.org/pull.php + - curl --fail-with-body https://sso.sucs.org/pull.php only: - master environment: live diff --git a/public/pull.php b/public/pull.php index 57ff895..b5a6745 100644 --- a/public/pull.php +++ b/public/pull.php @@ -7,8 +7,9 @@ if ($retVal == 0) { exit(0); } +http_response_code(500) print("not ok\n"); var_dump($retArr); var_dump($retVal); -?> \ No newline at end of file +?> -- GitLab From 202ad0953e65cf88298d3eeb70f6f7956e9fdc1a Mon Sep 17 00:00:00 2001 From: Imran Hussain Date: Wed, 22 Dec 2021 19:48:01 +0000 Subject: [PATCH 2/2] syntax fix --- public/pull.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/pull.php b/public/pull.php index b5a6745..bf7aa1b 100644 --- a/public/pull.php +++ b/public/pull.php @@ -7,7 +7,7 @@ if ($retVal == 0) { exit(0); } -http_response_code(500) +http_response_code(500); print("not ok\n"); var_dump($retArr); var_dump($retVal); -- GitLab