blob: 6d5d58a480c8c22555c3fd8c2e5b1d7dd96bc59f [file] [log] [blame]
load("//bazel/go:go_test.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "pushk_lib",
srcs = ["main.go"],
importpath = "go.skia.org/infra/kube/go/pushk",
visibility = ["//visibility:private"],
deps = [
"//go/auth",
"//go/common",
"//go/exec",
"//go/gcr",
"//go/gerrit/rubberstamper",
"//go/git",
"//go/kube/clusterconfig",
"//go/skerr",
"//go/sklog",
"//go/util",
],
)
go_binary(
name = "pushk",
data = [
"//kube:attach.sh",
"//kube/clusters:config.json",
],
embed = [":pushk_lib"],
visibility = ["//visibility:public"],
)
go_test(
name = "pushk_test",
srcs = ["main_test.go"],
data = glob(["testdata/**"]),
embed = [":pushk_lib"],
deps = [
"//go/testutils/unittest",
"//go/util",
"@com_github_stretchr_testify//assert",
],
)