forked from cockroachdb/cockroach-operator
-
Notifications
You must be signed in to change notification settings - Fork 2
/
BUILD.bazel
84 lines (76 loc) · 2.21 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
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
78
79
80
81
82
83
84
# gazelle:prefix github.com/cockroachdb/cockroach-operator
# gazelle:proto disable_global
# gazelle:exclude docs/generated/reference/generate/json_swagger
load("@io_bazel_rules_docker//container:container.bzl", "container_push")
# export WORKSPACE so workspace_binary rules can be used outside the root
exports_files([
"WORKSPACE",
"LICENSE",
"go.mod",
"go.sum",
])
# TODO
load("@bazel_gazelle//:def.bzl", "gazelle")
gazelle(name = "gazelle")
container_push(
name = "push_operator_image",
format = "Docker",
image = "//cmd/cockroach-operator:operator_image",
registry = "{STABLE_DOCKER_REGISTRY}",
repository = "{STABLE_IMAGE_REPOSITORY}",
tag = "{STABLE_DOCKER_TAG}",
)
filegroup(
name = "license",
srcs = ["LICENSE"],
visibility = ["//visibility:public"],
)
filegroup(
name = "package-srcs",
srcs = glob(
["**"],
exclude = [
"bazel-*/**",
".git/**",
],
),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//apis/v1alpha1:all-srcs",
"//cmd/cockroach-operator:all-srcs",
"//config:all-srcs",
"//e2e:all-srcs",
"//examples:all-srcs",
"//hack:all-srcs",
"//pkg/actor:all-srcs",
"//pkg/client/clientset/versioned:all-srcs",
"//pkg/client/informers/externalversions:all-srcs",
"//pkg/client/listers/apis/v1alpha1:all-srcs",
"//pkg/clustersql:all-srcs",
"//pkg/clusterstatus:all-srcs",
"//pkg/condition:all-srcs",
"//pkg/controller:all-srcs",
"//pkg/database:all-srcs",
"//pkg/featuregates:all-srcs",
"//pkg/features:all-srcs",
"//pkg/healthchecker:all-srcs",
"//pkg/kube:all-srcs",
"//pkg/kuberecord:all-srcs",
"//pkg/labels:all-srcs",
"//pkg/ptr:all-srcs",
"//pkg/resource:all-srcs",
"//pkg/scale:all-srcs",
"//pkg/security:all-srcs",
"//pkg/testutil:all-srcs",
"//pkg/update:all-srcs",
"//pkg/util:all-srcs",
"//pkg/utilfeature:all-srcs",
],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)