Add rule to push docker images (#3006)

* touch readme

* whatever

* Add docker_push to actually push the images

* revert readme

* revert pb.go
This commit is contained in:
Preston Van Loon 2019-07-20 20:40:03 -04:00 committed by GitHub
parent cc696d90e3
commit 4a4316eb95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 96 additions and 12 deletions

View File

@ -2,6 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
load("@io_bazel_rules_docker//go:image.bzl", "go_image")
load("@io_bazel_rules_docker//container:container.bzl", "container_bundle")
load("//tools:binary_targets.bzl", "binary_targets")
load("@io_bazel_rules_docker//contrib:push-all.bzl", "docker_push")
go_library(
name = "go_default_library",
@ -60,7 +61,7 @@ go_image(
)
container_bundle(
name = "push_images",
name = "image_bundle",
images = {
"gcr.io/prysmaticlabs/prysm/beacon-chain:latest": ":image",
"gcr.io/prysmaticlabs/prysm/beacon-chain:{DOCKER_TAG}": ":image",
@ -68,6 +69,12 @@ container_bundle(
tags = ["manual"],
)
docker_push(
name = "push_images",
bundle = ":image_bundle",
tags = ["manual"],
)
go_binary(
name = "beacon-chain",
embed = [":go_default_library"],

View File

@ -1,6 +1,7 @@
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_bundle")
load("@io_bazel_rules_docker//contrib:push-all.bzl", "docker_push")
go_library(
name = "go_default_library",
@ -42,10 +43,16 @@ go_image(
)
container_bundle(
name = "push_images",
name = "image_bundle",
images = {
"gcr.io/prysmaticlabs/prysm/beacon-chain/gateway:latest": ":image",
"gcr.io/prysmaticlabs/prysm/beacon-chain/gateway:{DOCKER_TAG}": ":image",
},
tags = ["manual"],
)
docker_push(
name = "push_images",
bundle = ":image_bundle",
tags = ["manual"],
)

View File

@ -1,6 +1,7 @@
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_bundle")
load("@io_bazel_rules_docker//contrib:push-all.bzl", "docker_push")
go_library(
name = "go_default_library",
@ -28,10 +29,16 @@ go_image(
)
container_bundle(
name = "push_images",
name = "image_bundle",
images = {
"gcr.io/prysmaticlabs/prysm/geth-prober:latest": ":image",
"gcr.io/prysmaticlabs/prysm/geth-prober:{DOCKER_TAG}": ":image",
},
tags = ["manual"],
)
docker_push(
name = "push_images",
bundle = ":image_bundle",
tags = ["manual"],
)

View File

@ -1,6 +1,7 @@
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_bundle")
load("@io_bazel_rules_docker//contrib:push-all.bzl", "docker_push")
go_library(
name = "go_default_library",
@ -55,10 +56,16 @@ go_binary(
)
container_bundle(
name = "push_images",
name = "image_bundle",
images = {
"gcr.io/prysmaticlabs/prysm/bootnode:latest": ":image",
"gcr.io/prysmaticlabs/prysm/bootnode:{DOCKER_TAG}": ":image",
},
tags = ["manual"],
)
docker_push(
name = "push_images",
bundle = ":image_bundle",
tags = ["manual"],
)

View File

@ -1,6 +1,7 @@
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_bundle")
load("@io_bazel_rules_docker//contrib:push-all.bzl", "docker_push")
go_library(
name = "go_default_library",
@ -45,10 +46,16 @@ go_image(
)
container_bundle(
name = "push_images",
name = "image_bundle",
images = {
"gcr.io/prysmaticlabs/prysm/cluster-pk-manager/client:latest": ":image",
"gcr.io/prysmaticlabs/prysm/cluster-pk-manager/client:{DOCKER_TAG}": ":image",
},
tags = ["manual"],
)
docker_push(
name = "push_images",
bundle = ":image_bundle",
tags = ["manual"],
)

View File

@ -1,6 +1,7 @@
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
load("@io_bazel_rules_docker//go:image.bzl", "go_image")
load("@io_bazel_rules_docker//container:container.bzl", "container_bundle")
load("@io_bazel_rules_docker//contrib:push-all.bzl", "docker_push")
go_library(
name = "go_default_library",
@ -106,10 +107,16 @@ go_image(
)
container_bundle(
name = "push_images",
name = "image_bundle",
images = {
"gcr.io/prysmaticlabs/prysm/cluster-pk-manager/server:latest": ":image",
"gcr.io/prysmaticlabs/prysm/cluster-pk-manager/server:{DOCKER_TAG}": ":image",
},
tags = ["manual"],
)
docker_push(
name = "push_images",
bundle = ":image_bundle",
tags = ["manual"],
)

View File

@ -1,6 +1,7 @@
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_bundle")
load("@io_bazel_rules_docker//contrib:push-all.bzl", "docker_push")
go_library(
name = "go_default_library",
@ -31,10 +32,16 @@ go_image(
)
container_bundle(
name = "push_images",
name = "image_bundle",
images = {
"gcr.io/prysmaticlabs/prysm/contract-addr:latest": ":image",
"gcr.io/prysmaticlabs/prysm/contract-addr:{DOCKER_TAG}": ":image",
},
tags = ["manual"],
)
docker_push(
name = "push_images",
bundle = ":image_bundle",
tags = ["manual"],
)

View File

@ -1,6 +1,7 @@
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_bundle")
load("@io_bazel_rules_docker//contrib:push-all.bzl", "docker_push")
go_library(
name = "go_default_library",
@ -40,10 +41,16 @@ go_image(
)
container_bundle(
name = "push_images",
name = "image_bundle",
images = {
"gcr.io/prysmaticlabs/prysm/eth1monitor:latest": ":image",
"gcr.io/prysmaticlabs/prysm/eth1monitor:{DOCKER_TAG}": ":image",
},
tags = ["manual"],
)
docker_push(
name = "push_images",
bundle = ":image_bundle",
tags = ["manual"],
)

View File

@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
load("@io_bazel_rules_docker//go:image.bzl", "go_image")
load("@io_bazel_rules_docker//container:container.bzl", "container_bundle")
load("@io_bazel_rules_docker//contrib:push-all.bzl", "docker_push")
IMPORT_PATH = "github.com/prysmaticlabs/prysm/tools/faucet"
@ -54,10 +55,16 @@ go_image(
)
container_bundle(
name = "push_images",
name = "image_bundle",
images = {
"gcr.io/prysmaticlabs/prysm/faucet:latest": ":image",
"gcr.io/prysmaticlabs/prysm/faucet:{DOCKER_TAG}": ":image",
},
tags = ["manual"],
)
docker_push(
name = "push_images",
bundle = ":image_bundle",
tags = ["manual"],
)

View File

@ -1,6 +1,7 @@
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_bundle")
load("@io_bazel_rules_docker//contrib:push-all.bzl", "docker_push")
go_library(
name = "go_default_library",
@ -47,10 +48,16 @@ go_binary(
)
container_bundle(
name = "push_images",
name = "image_bundle",
images = {
"gcr.io/prysmaticlabs/prysm/relaynode:latest": ":image",
"gcr.io/prysmaticlabs/prysm/relaynode:{DOCKER_TAG}": ":image",
},
tags = ["manual"],
)
docker_push(
name = "push_images",
bundle = ":image_bundle",
tags = ["manual"],
)

View File

@ -1,6 +1,7 @@
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_bundle")
load("@io_bazel_rules_docker//contrib:push-all.bzl", "docker_push")
go_library(
name = "go_default_library",
@ -39,10 +40,16 @@ go_image(
)
container_bundle(
name = "push_images",
name = "image_bundle",
images = {
"gcr.io/prysmaticlabs/prysm/ssz-server:latest": ":image",
"gcr.io/prysmaticlabs/prysm/ssz-server:{DOCKER_TAG}": ":image",
},
tags = ["manual"],
)
docker_push(
name = "push_images",
bundle = ":image_bundle",
tags = ["manual"],
)

View File

@ -2,6 +2,7 @@ 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_bundle")
load("//tools:binary_targets.bzl", "binary_targets")
load("@io_bazel_rules_docker//contrib:push-all.bzl", "docker_push")
go_library(
name = "go_default_library",
@ -62,7 +63,7 @@ go_image(
)
container_bundle(
name = "push_images",
name = "image_bundle",
images = {
"gcr.io/prysmaticlabs/prysm/validator:latest": ":image",
"gcr.io/prysmaticlabs/prysm/validator:{DOCKER_TAG}": ":image",
@ -70,6 +71,12 @@ container_bundle(
tags = ["manual"],
)
docker_push(
name = "push_images",
bundle = ":image_bundle",
tags = ["manual"],
)
go_binary(
name = "validator",
embed = [":go_default_library"],