hscloud/hswaw/site/BUILD.bazel
Serge Bazanski 56df80cf24 hswaw/site: deploy
Remove spurious hspki_disable, now that mirko is ripped out.

Change-Id: I277869e58804cc79bee84334a7abc93c3593c82e
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1748
Reviewed-by: radex <radex@hackerspace.pl>
2023-10-28 17:47:11 +00:00

47 lines
1.1 KiB
Python

load("@io_bazel_rules_docker//container:container.bzl", "container_image", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "site_lib",
srcs = [
"at.go",
"events.go",
"feeds.go",
"main.go",
"spaceapi.go",
"views.go",
],
importpath = "code.hackerspace.pl/hscloud/hswaw/site",
visibility = ["//visibility:private"],
deps = [
"//hswaw/site/calendar",
"//hswaw/site/static:static_go",
"//hswaw/site/templates:templates_go",
"@com_github_golang_glog//:glog",
],
)
go_binary(
name = "site",
embed = [":site_lib"],
pure = "on",
static = "on",
visibility = ["//visibility:public"],
)
container_image(
name = "latest",
base = "@prodimage-focal//image",
directory = "/hswaw/site/",
entrypoint = ["/hswaw/site/site"],
files = [":site"],
)
container_push(
name = "push",
format = "Docker",
image = ":latest",
registry = "registry.k0.hswaw.net",
repository = "q3k/hswaw-site",
tag = "1698514351-{STABLE_GIT_COMMIT}",
)