-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
49 lines (43 loc) · 1001 Bytes
/
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
45
46
47
48
49
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
pkg_tar(
name = "cli-static",
visibility = ["//visibility:public"],
deps = [
":cgi",
":static",
],
)
pkg_tar(
name = "static",
srcs = glob(["static/*"]),
mode = "0755",
strip_prefix = ".",
)
pkg_tar(
name = "cgi",
deps = [
":healthz",
":pubkey",
":sffelinks",
],
)
pkg_tar(
name = "sffelinks",
srcs = ["//infra/cli-static/sffelinks"],
mode = "0755",
package_dir = "/cgi",
strip_prefix = "/infra/cli-static/sffelinks/linux_amd64_stripped/", # TODO(adamyi@): probably better way
)
pkg_tar(
name = "healthz",
srcs = ["//infra/cli-static/healthz"],
mode = "0755",
package_dir = "/cgi",
strip_prefix = "/infra/cli-static/healthz/linux_amd64_stripped/", # TODO(adamyi@): probably better way
)
pkg_tar(
name = "pubkey",
srcs = ["//jwtkeys:jwtRS256.key.pub"],
mode = "0755",
package_dir = "/cgi",
)