mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-29 09:32:55 +00:00
Merge pull request #5 from Zindswini/patch-1
Maintain the Current OCI Version Label
This commit is contained in:
commit
51bc0c51df
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -33,6 +33,13 @@ jobs:
|
||||
- name: Checkout Push to Registry action
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- 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"]')
|
||||
echo "VERSION=$ver" >> $GITHUB_OUTPUT
|
||||
|
||||
# Build metadata
|
||||
- name: Image Metadata
|
||||
uses: docker/metadata-action@v4
|
||||
@ -42,6 +49,7 @@ jobs:
|
||||
${{ format('bazzite{0}', matrix.image_name) }}
|
||||
labels: |
|
||||
io.artifacthub.package.readme-url=https://raw.githubusercontent.com/ublue-os/bazzite/main/README.md
|
||||
org.opencontainers.image.version=${{ steps.labels.outputs.VERSION }}
|
||||
|
||||
- name: Generate tags
|
||||
id: generate-tags
|
||||
@ -133,4 +141,4 @@ jobs:
|
||||
- name: Echo outputs
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
echo "${{ toJSON(steps.push.outputs) }}"
|
||||
echo "${{ toJSON(steps.push.outputs) }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user