From 4b27aa5cb2cd339b2855c306edd791b00cbb9fa6 Mon Sep 17 00:00:00 2001
From: Bo-Chun Chen <louistw@uab.edu>
Date: Thu, 24 Aug 2023 11:55:39 -0500
Subject: [PATCH] Failed the pipeline job if it failed

---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 34c9e4f..0c9410f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -56,7 +56,7 @@ tf-apply:
       echo "image_ohpc defined as ${TF_VAR_image_ohpc}"
       fi   
     - export TF_VAR_keypair_name="os-gen-keypair-$BUILD_DATE"
-    - terraform apply -auto-approve || terraform destroy -auto-approve 
+    - terraform apply -auto-approve || terraform destroy -auto-approve && false
 
 clean-up:
   stage: cleanup
-- 
GitLab