mirror of
https://github.com/google/nomulus
synced 2026-10-01 12:16:02 +00:00
Use bazel rules to build docker image and push to GCR
Using bazel to build and push image result in reproducible builds. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=187252645
This commit is contained in:
@@ -24,3 +24,25 @@ closure_repositories(
|
||||
load("//java/google/registry:repositories.bzl", "domain_registry_repositories")
|
||||
|
||||
domain_registry_repositories()
|
||||
|
||||
# Setup docker bazel rules
|
||||
git_repository(
|
||||
name = "io_bazel_rules_docker",
|
||||
remote = "https://github.com/bazelbuild/rules_docker.git",
|
||||
tag = "v0.4.0",
|
||||
)
|
||||
|
||||
load(
|
||||
"@io_bazel_rules_docker//container:container.bzl",
|
||||
"container_pull",
|
||||
container_repositories = "repositories",
|
||||
)
|
||||
|
||||
container_repositories()
|
||||
|
||||
container_pull(
|
||||
name = "java_base",
|
||||
registry = "gcr.io",
|
||||
repository = "distroless/java",
|
||||
digest = "sha256:780ee786a774a25a4485f491b3e0a21f7faed01864640af7cebec63c46a0845a",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user