chore(ci): add same version tag as Fedora (#92)

Co-authored-by: Marco Ceppi <marco@ceppi.net>
This commit is contained in:
Jorge O. Castro 2023-03-25 13:01:10 -04:00 committed by GitHub
parent 2ef3c56118
commit 7ecebc6528
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,6 +86,13 @@ jobs:
echo "${TAG}"
done
echo "alias_tags=${alias_tags[*]}" >> $GITHUB_OUTPUT
- name: Get Current Fedora Version
id: labels
run: |
docker pull ghcr.io/ublue-os/silverblue-${{ matrix.image_flavor }}:${{ matrix.major_version }}
ver=$(docker inspect ghcr.io/ublue-os/silverblue-${{ matrix.image_flavor }}:${{ matrix.major_version }} | jq -r '.[].Config.Labels["org.opencontainers.image.version"]')
echo "VERSION=$ver" >> $GITHUB_OUTPUT
# Build metadata
- name: Image Metadata
@ -96,6 +103,7 @@ jobs:
${{ env.IMAGE_NAME }}
labels: |
org.opencontainers.image.title=${{ env.IMAGE_NAME }}
org.opencontainers.image.version=${{ steps.labels.outputs.VERSION }}
org.opencontainers.image.description=Fedora Silverblue for Ubuntu Expatriates
io.artifacthub.package.readme-url=https://raw.githubusercontent.com/ublue-os/bluefin/bluefin/README.md
io.artifacthub.package.logo-url=https://avatars.githubusercontent.com/u/120078124?s=200&v=4