Skip to content

Commit eb47a65

Browse files
committed
test new fatimage build
1 parent aa0786f commit eb47a65

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/fatimage.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- RL8
2626
- RL9
2727
build:
28-
- openstack.rocky-latest
28+
- openstack.openhpc
2929

3030
env:
3131
ANSIBLE_FORCE_COLOR: True
@@ -77,6 +77,7 @@ jobs:
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 }}
@@ -93,17 +94,6 @@ jobs:
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

0 commit comments

Comments
 (0)