Revert "chore(ci): fix possible empty version meta on image"

This reverts commit 17edc1b92f8e255a2469d87e2f909780f76840f2.
This commit is contained in:
Kyle Gospodnetich 2024-02-06 13:38:51 -08:00
parent 4a705495f0
commit 950e7c7c07

View File

@ -183,7 +183,6 @@ jobs:
- name: Get Current Fedora Version
id: labels
shell: bash
run: |
if [[ "${{ matrix.base_name }}" == "bazzite-nvidia" ]]; then
ver=$(skopeo inspect docker://ghcr.io/ublue-os/bazzite-${{ env.IMAGE_FLAVOR }}:${{ matrix.major_version }} | jq -r '.Labels["org.opencontainers.image.version"]')
@ -192,10 +191,6 @@ jobs:
else
ver=$(skopeo inspect docker://ghcr.io/ublue-os/${{ matrix.base_image_name }}-${{ env.IMAGE_FLAVOR }}:${{ matrix.major_version }} | jq -r '.Labels["org.opencontainers.image.version"]')
fi
if [ -z "$ver" ] || [ "null" = "$ver" ]; then
echo "inspected image version must not be empty or null"
exit 1
fi
echo "VERSION=$ver" >> $GITHUB_OUTPUT
# Build metadata