Chris Denneen
02/22/2024, 9:51 PMPePe Amengual
02/22/2024, 10:01 PMChris Denneen
02/22/2024, 10:03 PMPePe Amengual
02/22/2024, 10:04 PMChris Denneen
02/22/2024, 10:05 PMapply step to run or not? would need to be some sort of if condition I would thinkPePe Amengual
02/22/2024, 10:05 PMChris Denneen
02/22/2024, 10:06 PMPePe Amengual
02/22/2024, 10:06 PMPePe Amengual
02/22/2024, 10:06 PMPePe Amengual
02/22/2024, 10:07 PMChris Denneen
02/22/2024, 10:09 PMworkflows:
terragrunt:
plan:
steps:
- env:
name: TF_VAR_gitlab_token
command: 'echo "$ATLANTIS_GITLAB_TOKEN"'
- env:
# Reduce Terraform suggestion output
name: TF_IN_AUTOMATION
value: 'true'
- run:
command: terragrunt init -upgrade
- run:
command: terragrunt plan -input=false -out=$PLANFILE
output: strip_refreshing
apply:
steps:
- env:
name: TF_VAR_gitlab_token
command: 'echo "$ATLANTIS_GITLAB_TOKEN"'
- env:
# Reduce Terraform suggestion output
name: TF_IN_AUTOMATION
value: 'true'
- run: bash ./script.sh # exits 0 for okay and exits 1 for bad
- run: terragrunt apply $PLANFILE
if the run bash command exits 1 then the apply won't run right?PePe Amengual
02/22/2024, 10:10 PMChris Denneen
02/22/2024, 10:10 PMPePe Amengual
02/22/2024, 10:10 PMChris Denneen
02/22/2024, 10:15 PM