From 8506af2c24f02fc3e241671a594bf32784c55013 Mon Sep 17 00:00:00 2001 From: Serge Bazanski Date: Fri, 29 Jan 2021 23:55:13 +0100 Subject: [PATCH] app/matrix/wellknown: push container Change-Id: Ifc8fec94cdfd7c98b5c87c1c20167b34608e1eea --- app/matrix/wellknown/BUILD | 26 +++++++++++++++++++ app/matrix/wellknown/{README.me => README.md} | 0 2 files changed, 26 insertions(+) rename app/matrix/wellknown/{README.me => README.md} (100%) diff --git a/app/matrix/wellknown/BUILD b/app/matrix/wellknown/BUILD index 1cf41382..b44ac52a 100644 --- a/app/matrix/wellknown/BUILD +++ b/app/matrix/wellknown/BUILD @@ -1,3 +1,4 @@ +load("@io_bazel_rules_docker//container:container.bzl", "container_image", "container_layer", "container_push") load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") go_library( @@ -23,3 +24,28 @@ go_test( embed = [":go_default_library"], deps = ["@com_github_go_test_deep//:go_default_library"], ) + +container_layer( + name = "layer_bin", + files = [ + ":wellknown", + ], + directory = "/app/matrix/", +) + +container_image( + name = "runtime", + base = "@prodimage-bionic//image", + layers = [ + ":layer_bin", + ], +) + +container_push( + name = "push", + image = ":runtime", + format = "Docker", + registry = "registry.k0.hswaw.net", + repository = "q3k/wellknown", + tag = "{BUILD_TIMESTAMP}-{STABLE_GIT_COMMIT}", +) diff --git a/app/matrix/wellknown/README.me b/app/matrix/wellknown/README.md similarity index 100% rename from app/matrix/wellknown/README.me rename to app/matrix/wellknown/README.md