2018-07-08 21:40:34 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
2018-07-22 13:31:43 -04:00
|
|
|
load("@io_bazel_rules_docker//go:image.bzl", "go_image")
|
2018-07-30 10:04:47 -04:00
|
|
|
load("@io_bazel_rules_docker//container:container.bzl", "container_push")
|
2018-07-07 13:23:19 -04:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2018-07-08 21:40:34 -05:00
|
|
|
srcs = ["main.go"],
|
2018-08-22 12:15:21 -07:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/validator",
|
|
|
|
visibility = ["//validator:__subpackages__"],
|
2018-07-07 13:23:19 -04:00
|
|
|
deps = [
|
2018-07-19 11:31:50 -05:00
|
|
|
"//shared/cmd:go_default_library",
|
2018-07-13 22:35:15 -05:00
|
|
|
"//shared/debug:go_default_library",
|
2019-01-09 23:19:33 -05:00
|
|
|
"//shared/version:go_default_library",
|
2018-08-22 12:15:21 -07:00
|
|
|
"//validator/node:go_default_library",
|
|
|
|
"//validator/types:go_default_library",
|
2018-07-13 21:15:37 -05:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2018-07-08 21:40:34 -05:00
|
|
|
"@com_github_urfave_cli//:go_default_library",
|
2018-07-21 12:51:18 -05:00
|
|
|
"@com_github_x_cray_logrus_prefixed_formatter//:go_default_library",
|
2018-07-07 13:23:19 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2018-07-22 13:31:43 -04:00
|
|
|
go_image(
|
|
|
|
name = "image",
|
|
|
|
srcs = ["main.go"],
|
|
|
|
goarch = "amd64",
|
|
|
|
goos = "linux",
|
2018-08-22 12:15:21 -07:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/validator",
|
2018-07-22 13:31:43 -04:00
|
|
|
static = "on",
|
2018-08-21 19:59:36 -07:00
|
|
|
tags = ["manual"],
|
2018-07-30 10:04:47 -04:00
|
|
|
visibility = ["//visibility:private"],
|
2018-07-22 13:31:43 -04:00
|
|
|
deps = [
|
2019-01-09 23:19:33 -05:00
|
|
|
"//shared/version:go_default_library",
|
2018-07-22 13:31:43 -04:00
|
|
|
"//shared/cmd:go_default_library",
|
|
|
|
"//shared/debug:go_default_library",
|
2018-08-22 12:15:21 -07:00
|
|
|
"//validator/node:go_default_library",
|
|
|
|
"//validator/types:go_default_library",
|
2018-07-22 13:31:43 -04:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
|
|
"@com_github_urfave_cli//:go_default_library",
|
|
|
|
"@com_github_x_cray_logrus_prefixed_formatter//:go_default_library",
|
|
|
|
],
|
2018-12-30 22:40:39 -05:00
|
|
|
race = "off",
|
2018-07-22 13:31:43 -04:00
|
|
|
)
|
|
|
|
|
2018-07-30 10:04:47 -04:00
|
|
|
container_push(
|
|
|
|
name = "push_image",
|
|
|
|
format = "Docker",
|
|
|
|
image = ":image",
|
|
|
|
registry = "gcr.io",
|
2018-08-22 12:15:21 -07:00
|
|
|
repository = "prysmaticlabs/prysm/validator",
|
2018-07-30 10:04:47 -04:00
|
|
|
tag = "latest",
|
2018-08-21 19:59:36 -07:00
|
|
|
tags = ["manual"],
|
2018-07-30 10:04:47 -04:00
|
|
|
)
|
|
|
|
|
2018-07-08 21:40:34 -05:00
|
|
|
go_binary(
|
2018-08-22 12:15:21 -07:00
|
|
|
name = "validator",
|
2018-07-07 13:23:19 -04:00
|
|
|
embed = [":go_default_library"],
|
2018-08-22 12:15:21 -07:00
|
|
|
visibility = ["//validator:__subpackages__"],
|
2018-07-07 13:23:19 -04:00
|
|
|
)
|