File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff 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 : |
You can’t perform that action at this time.
0 commit comments