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

Capture built image id from packer

parent ca1b6375
No related branches found
No related tags found
1 merge request!10Add gitlab ci into project
......@@ -88,7 +88,11 @@ build_image:
PKR_VAR_build_instance_name="ood-${CRI_XCBC_HEAD}"
PKR_VAR_image_date_suffix=false
PKR_VAR_image_name="ood-${BUILD_DATE}"
$CI_PROJECT_DIR/bin/packer build openstack-ood
$CI_PROJECT_DIR/bin/packer build -machine-readable openstack-ood | tee ood_build.log
- echo BUILT_OOD_IMAGE_ID=$(grep 'Image:' ood_build.log | awk '{print $4}') | tee image.env
artifacts:
reports:
dotenv: image.env
deploy_knightly:
stage: deploy
......
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