mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-06 01:32:18 +00:00
40 lines
1013 B
Python
40 lines
1013 B
Python
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
||
|
load("@io_bazel_rules_docker//go:image.bzl", "go_image")
|
||
|
load("@io_bazel_rules_docker//container:container.bzl", "container_push")
|
||
|
|
||
|
go_library(
|
||
|
name = "go_default_library",
|
||
|
srcs = ["main.go"],
|
||
|
importpath = "github.com/prysmaticlabs/prysm/k8s/geth/prober",
|
||
|
visibility = ["//visibility:private"],
|
||
|
)
|
||
|
|
||
|
go_binary(
|
||
|
name = "prober",
|
||
|
embed = [":go_default_library"],
|
||
|
visibility = ["//visibility:public"],
|
||
|
)
|
||
|
|
||
|
go_image(
|
||
|
name = "image",
|
||
|
srcs = ["main.go"],
|
||
|
goarch = "amd64",
|
||
|
goos = "linux",
|
||
|
importpath = "github.com/prysmaticlabs/prysm/k8s/geth/prober",
|
||
|
static = "on",
|
||
|
visibility = ["//visibility:private"],
|
||
|
pure = "on",
|
||
|
tags = ["manual"],
|
||
|
)
|
||
|
|
||
|
container_push(
|
||
|
name = "push_image",
|
||
|
format = "Docker",
|
||
|
image = ":image",
|
||
|
registry = "gcr.io",
|
||
|
repository = "prysmaticlabs/prysm/geth-prober",
|
||
|
tag = "latest",
|
||
|
tags = ["manual"],
|
||
|
visibility = ["//visibility:private"],
|
||
|
)
|