-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
44 lines (40 loc) · 1.18 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
load("@io_bazel_rules_jsonnet//jsonnet:jsonnet.bzl", "jsonnet_library", "jsonnet_to_json")
load("@io_bazel_rules_docker//container:container.bzl", "container_image")
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@io_bazel_rules_docker//go:image.bzl", "go_image")
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load("//tools:challenge.bzl", "ctf_challenge")
ctf_challenge()
go_image(
name = "image",
args = [
"$(location :config.json)",
"$(location :templates)",
],
data = [
":config.json",
":templates",
],
embed = [":go_default_library"],
visibility = ["//visibility:public"],
)
go_library(
name = "go_default_library",
srcs = [
"auth.go",
"main.go",
"template.go",
],
importpath = "geegle.org/infra/gaia",
visibility = ["//visibility:private"],
deps = [
"@com_github_dgrijalva_jwt_go//:go_default_library",
"@com_github_go_sql_driver_mysql//:go_default_library",
"@org_golang_x_crypto//bcrypt:go_default_library",
],
)
go_binary(
name = "gaia",
embed = [":go_default_library"],
visibility = ["//visibility:public"],
)