Docker image - Improving org.opencontainers labels #3794

This commit is contained in:
dgtlmoon
2026-03-12 16:36:07 +01:00
parent b32617d700
commit fcfe089a53
2 changed files with 10 additions and 1 deletions
+10 -1
View File
@@ -128,7 +128,7 @@ jobs:
echo "Release tag: ${{ github.event.release.tag_name }}"
echo "Github ref: ${{ github.ref }}"
echo "Github ref name: ${{ github.ref_name }}"
- name: Docker meta :tag
if: github.event_name == 'release' && startsWith(github.event.release.tag_name, '0.')
uses: docker/metadata-action@v6
@@ -142,6 +142,15 @@ jobs:
type=semver,pattern={{major}}.{{minor}},value=${{ github.event.release.tag_name }}
type=semver,pattern={{major}},value=${{ github.event.release.tag_name }}
type=raw,value=latest
labels: |
org.opencontainers.image.version=${{ github.event.release.tag_name }}
org.opencontainers.image.source=https://github.com/dgtlmoon/changedetection.io
org.opencontainers.image.title=changedetection.io
org.opencontainers.image.url=https://changedetection.io
org.opencontainers.image.description=Website, webpage change detection, monitoring and notifications.
org.opencontainers.image.created=${{ github.event.release.published_at }}
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.documentation=https://changedetection.io
- name: Build and push :tag
id: docker_build_tag_release