mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 12:27:18 +00:00
79bc40dcbe
* Add contract-address webserver * add comment * printf
43 lines
1.0 KiB
Python
43 lines
1.0 KiB
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/tools/contract-addr",
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
go_binary(
|
|
name = "contract-addr",
|
|
embed = [":go_default_library"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
go_image(
|
|
name = "image",
|
|
srcs = ["main.go"],
|
|
importpath = "github.com/prysmaticlabs/prysm/tools/contract-addr",
|
|
visibility = ["//visibility:private"],
|
|
static = "on",
|
|
tags = ["manual"],
|
|
goarch = "amd64",
|
|
goos = "linux",
|
|
deps = [
|
|
],
|
|
race = "off",
|
|
pure = "on",
|
|
)
|
|
|
|
container_push(
|
|
name = "push_image",
|
|
format = "Docker",
|
|
image = ":image",
|
|
registry = "gcr.io",
|
|
repository = "prysmaticlabs/prysm/contract-addr",
|
|
tag = "latest",
|
|
tags = ["manual"],
|
|
visibility = ["//visibility:private"],
|
|
)
|