Files

37 lines
714 B
Python
Raw Permalink Normal View History

2020-10-30 12:00:11 -07:00
load("//images:defs.bzl", "docker_image")
load("//tools:defs.bzl", "go_binary", "pkg_tar")
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
2020-10-30 12:00:11 -07:00
docker_image(
2022-01-13 15:17:44 -08:00
name = "image",
2020-10-30 12:00:11 -07:00
data = ":files",
statements = ['ENTRYPOINT ["/webhook"]'],
2022-01-13 15:17:44 -08:00
tags = [
"local",
"manual",
"no-sandbox",
],
2020-10-30 12:00:11 -07:00
)
# files is the full file system of the webhook container. It is simply:
# /
# └─ webhook
pkg_tar(
name = "files",
srcs = [":webhook"],
extension = "tgz",
2022-07-22 16:32:11 -07:00
strip_prefix = "/webhook",
2020-10-30 12:00:11 -07:00
)
go_binary(
name = "webhook",
srcs = ["main.go"],
2024-12-02 12:04:38 -08:00
features = ["fully_static_link"],
2020-10-30 12:00:11 -07:00
pure = "on",
deps = ["//webhook/pkg/cli"],
)