Skip to content

Commit 5fccc23

Browse files
committed
add logic to unset signature_verified property
1 parent 0312bfd commit 5fccc23

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/extra.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,16 @@ jobs:
119119
echo $IMAGE_ID > image-id.txt
120120
echo $IMAGE_NAME > image-name.txt
121121
122-
- name: Make image usable for further builds
122+
- name: Make image usable for further builds (if signature_verified property exists)
123123
run: |
124124
. venv/bin/activate
125-
openstack image unset --property signature_verified "${{ steps.manifest.outputs.image-id }}"
125+
IMAGE_ID="${{ steps.manifest.outputs.image-id }}"
126+
if openstack image show "$IMAGE_ID" -f json | jq -e '.properties.signature_verified' > /dev/null; then
127+
echo "Unsetting signature_verified..."
128+
openstack image unset --property signature_verified "$IMAGE_ID"
129+
else
130+
echo "signature_verified not set, skipping unset."
131+
fi
126132
127133
- name: Delete image for automatically-run workflows
128134
run: |

0 commit comments

Comments
 (0)