Skip to content

Commit

Permalink
fix: use skopeo for more efficient upstream image introspection (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-stone committed Mar 29, 2023
1 parent 20000b9 commit 9bdcd6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,7 @@ jobs:
- name: Get current version
id: labels
run: |
docker pull ghcr.io/ublue-os/${{ matrix.image_name }}-main:${{ matrix.major_version }}
ver=$(docker inspect ghcr.io/ublue-os/${{ matrix.image_name }}-main:${{ matrix.major_version }} | jq -r '.[].Config.Labels["org.opencontainers.image.version"]')
ver=$(skopeo inspect docker://ghcr.io/ublue-os/${{ matrix.image_name }}-main:${{ matrix.major_version }} | jq -r '.Labels["org.opencontainers.image.version"]')
echo "VERSION=$ver" >> $GITHUB_OUTPUT
# Build metadata
Expand Down

0 comments on commit 9bdcd6e

Please sign in to comment.