-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
77 lines (68 loc) · 3.21 KB
/
BUILD
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@io_bazel_rules_docker//container:container.bzl", "container_bundle")
load("@io_bazel_rules_docker//contrib:push-all.bzl", "container_push")
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
exports_files(["tsconfig.json"])
# gazelle:exclude dist
# gazelle:exclude node_modules
# gazelle:prefix geegle.org
gazelle(name = "gazelle")
buildifier(
name = "buildifier",
exclude_patterns = [
"./dist/*",
"./node_modules/*",
],
)
buildifier(
name = "buildifier_check",
exclude_patterns = [
"./dist/*",
"./node_modules/*",
],
mode = "check",
)
container_bundle(
name = "all_containers",
images = {
# infra
"gcr.io/geegle/infra/cli-relay:latest": "//infra/cli-relay:image",
"gcr.io/geegle/infra/mss:latest": "//infra/mss:image",
"gcr.io/geegle/infra/sffe:latest": "//infra/sffe:image",
"gcr.io/geegle/infra/geemail-backend:latest": "//infra/geemail-backend:image",
"gcr.io/geegle/infra/gsmtpd:latest": "//infra/gsmtpd:image",
"gcr.io/geegle/infra/scoreboard:latest": "//infra/scoreboard:image",
"gcr.io/geegle/infra/mail:latest": "//infra/geemail-frontend:image",
"gcr.io/geegle/infra/uberproxy:latest": "//infra/uberproxy:image",
"gcr.io/geegle/infra/dns:latest": "//infra/dns:image",
"gcr.io/geegle/infra/requestz:latest": "//infra/requestz:image",
"gcr.io/geegle/infra/xssbot:latest": "//infra/xssbot:image",
"gcr.io/geegle/infra/gaia:latest": "//infra/gaia:image",
# web challenges
"gcr.io/geegle/chals/web/docs:latest": "//chals/web/docs:image",
"gcr.io/geegle/chals/web/seclearn:latest": "//chals/web/seclearn:image",
"gcr.io/geegle/chals/web/seclearn-solver:latest": "//chals/web/seclearn/solver:image",
"gcr.io/geegle/chals/web/pasteweb:latest": "//chals/web/pasteweb:image",
"gcr.io/geegle/chals/web/bugreport:latest": "//chals/web/bugreport:image",
"gcr.io/geegle/chals/web/memegen:latest": "//chals/web/memegen:image",
"gcr.io/geegle/chals/web/flatearth:latest": "//chals/web/flatearth:image",
"gcr.io/geegle/chals/web/employees:latest": "//chals/web/employees:image",
"gcr.io/geegle/chals/web/search:latest": "//chals/web/search:image",
# pwn challenges
"gcr.io/geegle/chals/pwn/game:latest": "//chals/pwn/game:image",
"gcr.io/geegle/chals/pwn/geelang:latest": "//chals/pwn/geelang:image",
"gcr.io/geegle/chals/pwn/shell:latest": "//chals/pwn/shell:image",
"gcr.io/geegle/chals/pwn/payroll:latest": "//chals/pwn/payroll:image",
"gcr.io/geegle/chals/re/tellgeegle:latest": "//chals/re/tellGeegle:image",
"gcr.io/geegle/chals/crypto/magic:latest": "//chals/crypto/magic:image",
# others challenges
"gcr.io/geegle/chals/ir/who-is-attacking-me:latest": "//chals/ir/who-is-attacking-me:image",
"gcr.io/geegle/chals/pwn/intern-project:latest": "//chals/pwn/intern-project:image",
"gcr.io/geegle/chals/web/guest:latest": "//chals/web/guest:image",
},
)
container_push(
name = "all_containers_push",
bundle = ":all_containers",
format = "Docker",
)