labelling the docker image

stamping
Nick Dumas 1 year ago
parent 884137a986
commit c7c774041b

@ -43,11 +43,17 @@ pkg_tar(
load("@rules_oci//oci:defs.bzl", "oci_image", "oci_push") load("@rules_oci//oci:defs.bzl", "oci_image", "oci_push")
filegroup(
name = "docker_labels",
srcs = ["labels.txt"],
)
oci_image( oci_image(
name = "image", name = "image",
base = "@distroless_base", base = "@distroless_base",
entrypoint = ["/echo"], entrypoint = ["/echo"],
tars = [":tar"], tars = [":tar"],
labels = ":docker_labels",
) )
oci_push( oci_push(

@ -0,0 +1,10 @@
org.label-schema.name="gomud echo"
org.label-schema.description="simple echo server for testing gomud functionality"
org.label-schema.vcs-ref=$VCS_REF // this is a git commit, parameterize this too
org.label-schema.vcs-url=code.ndumas.com/ndumas/gomud
org.label-schema.license="MIT License"
org.label-schema.schema-version="" // TODO: parameterize this
name="gomud-echo"
vendor="ndumas"
description="simple echo server for testing gomud functionality"
summary="Deploy a gomud echo server"
Loading…
Cancel
Save