diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ce90ed76abde4b480e171287ca1a2c0dddee3d85..c2aece5306257bceeb4a921152c1b6d9b70c0659 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,6 +28,8 @@ stages: # List of stages for jobs, and their order of execution prep-deploy: stage: .pre tags: [build] + environment: + name: $TARGET_ENV script: - export BUILD_DATE=$(TZ=America/Chicago date +%Y-%m-%d-%H-%M-%S) - | @@ -55,6 +57,8 @@ prep-deploy: tf-validate: stage: validate tags: [build] + environment: + name: $TARGET_ENV script: - cd CRI_XCBC && git checkout dev && cd .. - terraform --version @@ -70,6 +74,8 @@ tf-apply: - .terraform/ stage: build tags: [build] + environment: + name: $TARGET_ENV script: - echo "TF_VAR_data_volume=${TF_VAR_data_volume}" - echo "TF_VAR_flavor=${TF_VAR_flavor}" @@ -132,6 +138,8 @@ staging-post-deploy: clean-up: stage: cleanup tags: [build] + environment: + name: $TARGET_ENV script: - terraform destroy -auto-approve when: manual