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

ignoring the terraform cache, and ignoring the CRI_XCBC commands

parent 97849f29
2 merge requests!6Add CD feature to the repo,!1wip: test-keypair without file
Pipeline #8058 failed with stages
in 2 minutes and 54 seconds
...@@ -38,6 +38,9 @@ tf-validate: ...@@ -38,6 +38,9 @@ tf-validate:
- 'sed -i -E "s/(cod_deploy: ).*/\1false/" CRI_XCBC/group_vars/all' - 'sed -i -E "s/(cod_deploy: ).*/\1false/" CRI_XCBC/group_vars/all'
tf-apply: tf-apply:
cache:
paths:
- .terraform/
stage: build stage: build
tags: [build] tags: [build]
script: script:
...@@ -48,8 +51,8 @@ tf-apply: ...@@ -48,8 +51,8 @@ tf-apply:
- XDMOD_IMAGES=($(openstack image list --sort-column Name --sort-descending -f value -c Name -c ID | grep -P ' xdmod-\d{14}$' | awk '{print $2}')) - XDMOD_IMAGES=($(openstack image list --sort-column Name --sort-descending -f value -c Name -c ID | grep -P ' xdmod-\d{14}$' | awk '{print $2}'))
- export TF_VAR_image_ohpc="${XDMOD_IMAGES[1]}" - export TF_VAR_image_ohpc="${XDMOD_IMAGES[1]}"
- echo $TF_VAR_image_ohpc - echo $TF_VAR_image_ohpc
- cd CRI_XCBC && git checkout dev && git pull && git status && cd .. # - cd CRI_XCBC && git checkout dev && git pull && git status && cd ..
- 'sed -i -E "s/(cod_deploy: ).*/\1false/" CRI_XCBC/group_vars/all' # - 'sed -i -E "s/(cod_deploy: ).*/\1false/" CRI_XCBC/group_vars/all'
- terraform apply -auto-approve || terraform destroy -auto-approve && false - terraform apply -auto-approve || terraform destroy -auto-approve && false
clean-up: clean-up:
......
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