Skip to content

Commit

Permalink
chore(ci): fix possible empty version meta on image (ublue-os#878)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman authored Feb 7, 2024
1 parent 684d27a commit e801dfb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,14 @@ jobs:
- name: Get Current Fedora Version
id: labels
shell: bash
run: |
set -eo pipefail
ver=$(skopeo inspect docker://ghcr.io/ublue-os/silverblue-${{ matrix.image_flavor }}:${{ matrix.major_version }} | jq -r '.Labels["org.opencontainers.image.version"]')
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
Expand Down

0 comments on commit e801dfb

Please sign in to comment.