mirror of
https://github.com/google/nomulus.git
synced 2025-08-03 00:12:11 +02: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:
parent
9e3fb8b93c
commit
753a269357
6 changed files with 53 additions and 88 deletions
22
WORKSPACE
22
WORKSPACE
|
@ -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",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue