blob: 186b0efbd522c4bd39998ffe300feed04f5879f2 [file] [log] [blame]
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_library(
name = "go_default_library",
srcs = [
"helpers.go",
"main.go",
"markdown.go",
],
importpath = "code.hackerspace.pl/hscloud/devtools/hackdoc",
visibility = ["//visibility:private"],
deps = [
"//devtools/depotview/proto:go_default_library",
"//devtools/hackdoc/config:go_default_library",
"//devtools/hackdoc/source:go_default_library",
"//go/mirko:go_default_library",
"//go/pki:go_default_library",
"@com_github_gabriel_vasile_mimetype//:go_default_library",
"@com_github_golang_glog//:go_default_library",
"@in_gopkg_russross_blackfriday_v2//:go_default_library",
"@org_golang_google_grpc//:go_default_library",
],
)
go_binary(
name = "hackdoc",
embed = [":go_default_library"],
visibility = ["//visibility:public"],
)
container_layer(
name = "layer_bin",
files = [
":hackdoc",
],
directory = "/devtools/",
)
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/hackdoc",
tag = "{BUILD_TIMESTAMP}-{STABLE_GIT_COMMIT}",
)