Skip to content
Snippets Groups Projects

Adding TARGET_ENV as environments for different jobs

Merged Ravi Tripathi requested to merge feat-add-target-env-for-jobs into master
1 file
+ 8
0
Compare changes
  • Side-by-side
  • Inline
+ 8
0
@@ -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
Loading