Skip to content
Snippets Groups Projects
Commit bcd5e372 authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Adding TARGET_ENV as environments for different jobs

parent 1866bb74
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment