Skip to content

Commit

Permalink
chore(ci): use skopeo for more efficient upstream image introspection (
Browse files Browse the repository at this point in the history
…#93)

Co-authored-by: Marco Ceppi <[email protected]>
  • Loading branch information
castrojo and marcoceppi authored Mar 31, 2023
1 parent ade520f commit 057d9b8
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 @@ -101,8 +101,7 @@ jobs:
- name: Get current version
id: labels
run: |
docker pull quay.io/fedora-ostree-desktops/${{ env.SOURCE_IMAGE }}:${{ matrix.major_version }}
ver=$(docker inspect quay.io/fedora-ostree-desktops/${{ env.SOURCE_IMAGE }}:${{ matrix.major_version }} | jq -r '.[].Config.Labels["org.opencontainers.image.version"]')
ver=$(skopeo inspect docker://quay.io/fedora-ostree-desktops/${{ env.SOURCE_IMAGE }}:${{ matrix.major_version }} | jq -r '.Labels["org.opencontainers.image.version"]')
echo "VERSION=$ver" >> $GITHUB_OUTPUT
# Build metadata
Expand Down

0 comments on commit 057d9b8

Please sign in to comment.