Skip to content

Commit

Permalink
output multiple image names
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpb committed Apr 4, 2024
1 parent db81091 commit e9fe323
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/fatimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,15 @@ jobs:
env:
PKR_VAR_os_version: ${{ matrix.os_version }}

- name: Get created image name from manifest
- name: Get created image names from manifest
id: manifest
run: |
. venv/bin/activate
IMAGE_ID=$(jq --raw-output '.builds[-1].artifact_id' packer/packer-manifest.json)
while ! openstack image show -f value -c name $IMAGE_ID; do
sleep 30
for IMAGE_ID in $(jq --raw-output '.builds[].artifact_id' packer/packer-manifest.json)
do
while ! openstack image show -f value -c name $IMAGE_ID; do
sleep 5
done
IMAGE_NAME=$(openstack image show -f value -c name $IMAGE_ID)
echo $IMAGE_NAME
done
IMAGE_NAME=$(openstack image show -f value -c name $IMAGE_ID)
echo "IMAGE_ID=${IMAGE_ID}" >> "$GITHUB_OUTPUT"
echo "IMAGE_NAME=${IMAGE_NAME}" >> "$GITHUB_OUTPUT"

0 comments on commit e9fe323

Please sign in to comment.