Skip to content

Commit 63b7ce4

Browse files
author
ejacques
committed
Fix OCI labels: preserve description and title in CI
- Add explicit labels in docker/metadata-action to preserve description - Remove hardcoded version from Dockerfile (set dynamically by CI) - Ensure description and title are consistent across builds
1 parent 1732513 commit 63b7ce4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ jobs:
4646
type=semver,pattern={{version}}
4747
type=semver,pattern={{major}}.{{minor}}
4848
type=ref,event=tag
49+
labels: |
50+
org.opencontainers.image.description=Minimal Alpine container demonstrating ApstraHub container publishing
51+
org.opencontainers.image.title=ApstraHub Container Example - Alpine
4952
5053
- name: Build and Push Container
5154
id: build

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
FROM alpine:3.22
66

77
# OCI Image Labels - Required for ApstraHub container metadata extraction
8+
# Note: version, title, description are set by docker/metadata-action in CI
89
LABEL org.opencontainers.image.title="ApstraHub Container Example - Alpine"
910
LABEL org.opencontainers.image.description="Minimal Alpine container demonstrating ApstraHub container publishing"
1011
LABEL org.opencontainers.image.authors="ApstraHub Team <apstrahub@juniper.net>"
11-
LABEL org.opencontainers.image.version="1.0.0"
1212
LABEL org.opencontainers.image.documentation="https://github.com/Juniper/apstrahub-container-test-alpine"
1313
LABEL org.opencontainers.image.source="https://github.com/Juniper/apstrahub-container-test-alpine"
1414
LABEL org.opencontainers.image.vendor="Juniper Networks"

0 commit comments

Comments
 (0)