containers: set opencontainers labels for cockpit-ws

Many popular containers set standardised annotations as a label to allow
container UI's to display additional container image details. Set a
subset of annotations which are useful for administrators running a
cockpit-ws container.

https://specs.opencontainers.org/image-spec/annotations/
This commit is contained in:
Jelle van der Waa
2026-02-18 13:05:49 +01:00
committed by Jelle van der Waa
parent bb2daaae60
commit 263f616496
+9 -1
View File
@@ -12,7 +12,15 @@ if [ -z "${IMAGE_TAG:-}" ]; then
IMAGE_TAG=quay.io/cockpit/ws:release-$(date +%s)
fi
$RUNC build -t $IMAGE_TAG containers/ws
$RUNC build \
--label org.opencontainers.image.url="https://cockpit-project.org" \
--label org.opencontainers.image.documentation="https://github.com/cockpit-project/cockpit/blob/main/containers/ws/README.md" \
--label org.opencontainers.image.description="Web-based graphical interface for Linux servers." \
--label org.opencontainers.image.source="https://github.com/cockpit-project/cockpit/" \
--label org.opencontainers.image.licenses="LGPL-2.1-or-later AND GPL-3.0-or-later AND MIT AND CC-BY-SA-3.0 AND BSD-3-Clause" \
--label org.opencontainers.image.version="$(git describe --tags --abbrev=0 main)" \
--label org.opencontainers.image.revision="$(git rev-parse HEAD)" \
-t $IMAGE_TAG containers/ws
# smoke test
name=ws-release