mirror of
https://github.com/cockpit-project/cockpit.git
synced 2026-05-06 04:16:43 -04:00
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:
committed by
Jelle van der Waa
parent
bb2daaae60
commit
263f616496
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user