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

Merge branch 'feat-use-image-names-for-env' into 'master'

Use image name based on the target env

See merge request !19
parents a3325a0c 11c8c121
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ tf-apply: ...@@ -78,7 +78,7 @@ tf-apply:
- | - |
if [ -z $TF_VAR_image_ohpc ]; if [ -z $TF_VAR_image_ohpc ];
then then
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-$TARGET_ENV-\d{14}$' | awk '{print $2}'))
export TF_VAR_image_ohpc="${XDMOD_IMAGES[0]}" export TF_VAR_image_ohpc="${XDMOD_IMAGES[0]}"
echo $TF_VAR_image_ohpc echo $TF_VAR_image_ohpc
else else
......
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