diff --git a/cmd/echo/BUILD.bazel b/cmd/echo/BUILD.bazel index 47c7581..2016206 100644 --- a/cmd/echo/BUILD.bazel +++ b/cmd/echo/BUILD.bazel @@ -43,11 +43,17 @@ pkg_tar( load("@rules_oci//oci:defs.bzl", "oci_image", "oci_push") +filegroup( + name = "docker_labels", + srcs = ["labels.txt"], +) + oci_image( name = "image", base = "@distroless_base", entrypoint = ["/echo"], tars = [":tar"], + labels = ":docker_labels", ) oci_push( diff --git a/cmd/echo/labels.txt b/cmd/echo/labels.txt new file mode 100644 index 0000000..b30b447 --- /dev/null +++ b/cmd/echo/labels.txt @@ -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"