mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-06 17:52:18 +00:00
75 lines
3.1 KiB
Python
75 lines
3.1 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 = ["deployContract.go"],
|
|
importpath = "github.com/prysmaticlabs/prysm/contracts/deposit-contract/deployContract",
|
|
visibility = ["//visibility:private"],
|
|
deps = [
|
|
"//contracts/deposit-contract:go_default_library",
|
|
"//shared/params:go_default_library",
|
|
"//shared/version:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//accounts/abi/bind:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//accounts/keystore:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//common:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//crypto:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//ethclient:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//rpc:go_default_library",
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
"@com_github_urfave_cli//:go_default_library",
|
|
"@com_github_x_cray_logrus_prefixed_formatter//:go_default_library",
|
|
"@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library",
|
|
"@io_k8s_client_go//kubernetes:go_default_library",
|
|
"@io_k8s_client_go//rest:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_binary(
|
|
name = "deployContract",
|
|
embed = [":go_default_library"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
go_image(
|
|
name = "image",
|
|
srcs = ["deployContract.go"],
|
|
importpath = "github.com/prysmaticlabs/prysm/contracts/deposit-contract/deployContract",
|
|
deps = [
|
|
"//contracts/deposit-contract:go_default_library",
|
|
"//shared/params:go_default_library",
|
|
"//shared/version:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//accounts/abi/bind:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//accounts/keystore:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//common:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//crypto:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//ethclient:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//rpc:go_default_library",
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
"@com_github_urfave_cli//:go_default_library",
|
|
"@com_github_x_cray_logrus_prefixed_formatter//:go_default_library",
|
|
"@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library",
|
|
"@io_k8s_client_go//kubernetes:go_default_library",
|
|
"@io_k8s_client_go//rest:go_default_library",
|
|
],
|
|
visibility = ["//visibility:private"],
|
|
pure = "off", # depends on cgo for go-etheruem crypto
|
|
static = "on",
|
|
tags = ["manual"],
|
|
goarch = "amd64",
|
|
goos = "linux",
|
|
race = "off",
|
|
)
|
|
|
|
container_push(
|
|
name = "push_image",
|
|
format = "Docker",
|
|
image = ":image",
|
|
registry = "gcr.io",
|
|
repository = "prysmaticlabs/prysm/deploy-deposit-contract",
|
|
tag = "latest",
|
|
tags = ["manual"],
|
|
visibility = ["//visibility:private"],
|
|
)
|