From 74638d568f583c3b161b5b8db57398722a569cc3 Mon Sep 17 00:00:00 2001 From: Niklas van Schrick Date: Fri, 9 Feb 2024 23:26:52 +0100 Subject: [PATCH] Re-enable colors for terraform output --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cfea84b..e28d14e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,11 +16,11 @@ tf-plan:main: - .tf stage: terraform-plan script: - - gitlab-terraform plan -no-color | tee output + - gitlab-terraform plan | tee output - gitlab-terraform plan-json - | echo -e "\e[0Ksection_start:`date +%s`:glpa_summary\r\e[0KHeader of the summary" - grep -E "Plan:|No changes" output + grep -E "Plan:|No changes" output | sed -r "s/[[:cntrl:]]\[[0-9]{1,3}m//g" echo -e "\e[0Ksection_end:`date +%s`:glpa_summary\r\e[0K" artifacts: expire_in: 7 days @@ -39,10 +39,10 @@ tf-apply:main: needs: - tf-plan:main script: - - gitlab-terraform apply -no-color | tee output + - gitlab-terraform apply | tee output - | echo -e "\e[0Ksection_start:`date +%s`:glpa_summary\r\e[0KHeader of the summary" - grep "Apply complete!" output + grep "Apply complete!" output | sed -r "s/[[:cntrl:]]\[[0-9]{1,3}m//g" echo -e "\e[0Ksection_end:`date +%s`:glpa_summary\r\e[0K" environment: name: main