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 25
25
- RL8
26
26
- RL9
27
27
build :
28
- - openstack.rocky-latest
28
+ - openstack.openhpc
29
29
30
30
env :
31
31
ANSIBLE_FORCE_COLOR : True
77
77
-on-error=${{ vars.PACKER_ON_ERROR }} \
78
78
-only=${{ matrix.build }} \
79
79
-var-file=$PKR_VAR_environment_root/${{ vars.CI_CLOUD }}.pkrvars.hcl \
80
+ -var 'source_image_name={"${{ matrix.os_version }}":"rocky-latest-${{ matrix.os_version }}"}'
80
81
openstack.pkr.hcl
81
82
env :
82
83
PKR_VAR_os_version : ${{ matrix.os_version }}
93
94
echo "image-name=${IMAGE_NAME}" >> "$GITHUB_OUTPUT"
94
95
echo "image-id=$IMAGE_ID" >> "$GITHUB_OUTPUT"
95
96
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
-
107
97
- name : Download image
108
98
run : |
109
99
. venv/bin/activate
You can’t perform that action at this time.
0 commit comments