blob: b61e9ae8cb0e3162402c6f3873874bd97df8ed7d [file] [log] [blame]
load(
"@io_bazel_rules_docker//docker:docker.bzl",
"docker_bundle",
)
load(
"@io_bazel_rules_docker//contrib:push-all.bzl",
"docker_push",
)
docker_bundle(
name = "prod-bundle",
images = {
"gcr.io/bazel-public/jenkins-master:latest": "//jenkins:jenkins",
"gcr.io/bazel-public/deploy-slave:latest": "//jenkins:deploy.docker",
"gcr.io/bazel-public/sync-gerrit-github:latest": "//gerrit-github-sync:gerrit-github-sync",
},
)
docker_push(
name = "deploy",
bundle = ":prod-bundle",
)
docker_bundle(
name = "staging-bundle",
images = {
"gcr.io/bazel-public/jenkins-master-staging:latest": "//jenkins:jenkins-staging",
"gcr.io/bazel-public/deploy-slave-staging:latest": "//jenkins:deploy-staging.docker",
},
)
docker_push(
name = "deploy-staging",
bundle = ":staging-bundle",
)