File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 2525 - RL8
2626 - RL9
2727 build :
28- - openstack.rocky-latest
28+ - openstack.openhpc
2929
3030 env :
3131 ANSIBLE_FORCE_COLOR : True
7777 -on-error=${{ vars.PACKER_ON_ERROR }} \
7878 -only=${{ matrix.build }} \
7979 -var-file=$PKR_VAR_environment_root/${{ vars.CI_CLOUD }}.pkrvars.hcl \
80+ -var 'source_image_name={"${{ matrix.os_version }}":"rocky-latest-${{ matrix.os_version }}"}' \
8081 openstack.pkr.hcl
8182 env :
8283 PKR_VAR_os_version : ${{ matrix.os_version }}
9394 echo "image-name=${IMAGE_NAME}" >> "$GITHUB_OUTPUT"
9495 echo "image-id=$IMAGE_ID" >> "$GITHUB_OUTPUT"
9596
96- - name : Delete old latest image
97- run : |
98- . venv/bin/activate
99- IMAGE_COUNT=$(openstack image list --name ${{ steps.manifest.outputs.image-name }} -f value -c ID | wc -l)
100- if [ "$IMAGE_COUNT" -gt 1 ]; then
101- OLD_IMAGE_ID=$(openstack image list --sort created_at:asc --name "${{ steps.manifest.outputs.image-name }}" -f value -c ID | head -n 1)
102- openstack image delete "$OLD_IMAGE_ID"
103- else
104- echo "Only one image exists, skipping deletion."
105- fi
106-
10797 - name : Download image
10898 run : |
10999 . venv/bin/activate
You can’t perform that action at this time.
0 commit comments