blob: ee9c41f39ce359ba9a869f9455b236e70994261a [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "docker_pushes_watcher_lib",
srcs = ["main.go"],
importpath = "go.skia.org/infra/docker_pushes_watcher/go/docker_pushes_watcher",
visibility = ["//visibility:private"],
deps = [
"//go/auth",
"//go/common",
"//go/docker/build/pubsub",
"//go/exec",
"//go/firestore",
"//go/gitauth",
"//go/gitiles",
"//go/httputils",
"//go/metrics2",
"//go/pubsub/sub",
"//go/skerr",
"//go/sklog",
"//go/util",
"@com_google_cloud_go_datastore//:datastore",
"@com_google_cloud_go_firestore//:firestore",
"@com_google_cloud_go_pubsub//:pubsub",
"@org_golang_google_api//iterator",
"@org_golang_x_oauth2//:oauth2",
"@org_golang_x_oauth2//google",
],
)
go_binary(
name = "docker_pushes_watcher",
embed = [":docker_pushes_watcher_lib"],
visibility = ["//visibility:public"],
)
go_test(
name = "docker_pushes_watcher_test",
srcs = ["main_test.go"],
embed = [":docker_pushes_watcher_lib"],
deps = [
"//go/docker/build/pubsub",
"//go/exec",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@org_golang_x_oauth2//:oauth2",
],
)