2018-11-26 18:23:56 +00:00
|
|
|
# gazelle:build_file_name BUILD,BUILD.bazel
|
|
|
|
|
2018-01-09 18:57:14 +00:00
|
|
|
# gazelle:exclude _artifacts
|
|
|
|
# gazelle:exclude _gopath
|
|
|
|
# gazelle:exclude _output
|
|
|
|
# gazelle:exclude _tmp
|
2018-11-26 18:23:56 +00:00
|
|
|
|
2018-03-06 22:33:18 +00:00
|
|
|
# gazelle:prefix k8s.io/kubernetes
|
2018-01-09 18:57:14 +00:00
|
|
|
|
2018-11-26 18:23:56 +00:00
|
|
|
# Disable proto rules, since the Go sources are currently generated by
|
|
|
|
# hack/update-generated-protobuf.sh and checked into the repo.
|
|
|
|
# gazelle:proto disable_global
|
|
|
|
|
2018-01-09 18:57:14 +00:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
load("@io_kubernetes_build//defs:build.bzl", "gcs_upload")
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "_binary-artifacts-and-hashes",
|
|
|
|
srcs = [
|
|
|
|
"//build:client-targets-and-hashes",
|
|
|
|
"//build:docker-artifacts-and-hashes",
|
|
|
|
"//build:node-targets-and-hashes",
|
|
|
|
"//build:server-targets-and-hashes",
|
|
|
|
"//build/debs:debs-and-hashes",
|
|
|
|
],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
|
|
|
gcs_upload(
|
|
|
|
name = "push-build",
|
|
|
|
data = [
|
|
|
|
":_binary-artifacts-and-hashes",
|
|
|
|
"//build/release-tars:release-tars-and-hashes",
|
2018-07-18 14:47:22 +00:00
|
|
|
"//cluster/gce/gci:gcs-release-artifacts-and-hashes",
|
2018-01-09 18:57:14 +00:00
|
|
|
],
|
|
|
|
tags = ["manual"],
|
|
|
|
upload_paths = {
|
|
|
|
"//:_binary-artifacts-and-hashes": "bin/linux/amd64",
|
|
|
|
"//build/release-tars:release-tars-and-hashes": "",
|
2018-07-18 14:47:22 +00:00
|
|
|
"//cluster/gce/gci:gcs-release-artifacts-and-hashes": "extra/gce",
|
2018-01-09 18:57:14 +00:00
|
|
|
},
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "package-srcs",
|
|
|
|
srcs = glob(
|
|
|
|
["**"],
|
|
|
|
exclude = [
|
|
|
|
"bazel-*/**",
|
|
|
|
"_*/**",
|
|
|
|
".config/**",
|
|
|
|
".git/**",
|
|
|
|
".gsutil/**",
|
|
|
|
".make/**",
|
|
|
|
],
|
|
|
|
),
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "all-srcs",
|
|
|
|
srcs = [
|
|
|
|
":package-srcs",
|
2018-07-18 14:47:22 +00:00
|
|
|
"//api/openapi-spec:all-srcs",
|
|
|
|
"//api/swagger-spec:all-srcs",
|
2018-01-09 18:57:14 +00:00
|
|
|
"//build:all-srcs",
|
|
|
|
"//cluster:all-srcs",
|
|
|
|
"//cmd:all-srcs",
|
|
|
|
"//docs:all-srcs",
|
|
|
|
"//hack:all-srcs",
|
|
|
|
"//pkg:all-srcs",
|
|
|
|
"//plugin:all-srcs",
|
|
|
|
"//staging:all-srcs",
|
|
|
|
"//test:all-srcs",
|
|
|
|
"//third_party:all-srcs",
|
2018-07-18 14:47:22 +00:00
|
|
|
"//translations:all-srcs",
|
2018-01-09 18:57:14 +00:00
|
|
|
"//vendor:all-srcs",
|
|
|
|
],
|
|
|
|
tags = ["automanaged"],
|
|
|
|
)
|
|
|
|
|
|
|
|
genrule(
|
|
|
|
name = "save_git_version",
|
|
|
|
outs = ["version"],
|
|
|
|
cmd = "grep ^STABLE_BUILD_SCM_REVISION bazel-out/stable-status.txt | awk '{print $$2}' >$@",
|
|
|
|
stamp = 1,
|
|
|
|
)
|