Skip to content
Snippets Groups Projects
Commit 2e258047 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Use project level internal ID

parent 4c794d31
No related branches found
No related tags found
1 merge request!40Keep PR images and instances
Pipeline #7645 passed with stages
in 19 minutes and 17 seconds
......@@ -83,8 +83,8 @@ build_image:
- packer validate openstack-ood
- |
if [ $CI_PIPELINE_SOURCE == 'merge_request_event' ]; then
export PKR_VAR_image_name="ood-PR-${CI_MERGE_REQUEST_ID}"
echo OOD_INSTANCE_NAME="ood-PR-${CI_MERGE_REQUEST_ID}" | tee -a $CI_PROJECT_DIR/image.env
export PKR_VAR_image_name="ood-PR-${CI_MERGE_REQUEST_IID}"
echo OOD_INSTANCE_NAME="ood-PR-${CI_MERGE_REQUEST_IID}" | tee -a $CI_PROJECT_DIR/image.env
export FLOATING_IP=$(openstack floating ip create uab-campus -f value -c floating_ip_address)
echo FLOATING_IP=$FLOATING_IP | tee -a $CI_PROJECT_DIR/image.env
sed -i -E "s/(ood_servername: ).*/\1\"$CI_COMMIT_REF_SLUG.$FLOATING_IP.nip.io\"/" CRI_XCBC/group_vars/knightly
......
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