Files
cert-manager/build/images.bzl
T
2022-01-04 14:49:15 +00:00

40 lines
1.8 KiB
Python
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Copyright 2020 The cert-manager Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("@io_bazel_rules_docker//container:container.bzl", "container_pull")
def define_base_images():
# Use 'static' distroless image for all builds by default.
# To get the latest-amd64 digest for gcr.io/distroless/static, assuming
# that $GOPATH/bin is in your $PATH, run:
# go install github.com/google/go-containerregistry/cmd/crane@latest && crane digest gcr.io/distroless/static:latest-amd64
container_pull(
name = "static_base",
registry = "gcr.io",
repository = "distroless/static",
digest = "sha256:49f33fac9328ac595cb74bd02e6a186414191c969de0d8be34e6307c185acb8e"
)
# Use 'dynamic' distroless image for modified cert-manager deployments that
# are dynamically linked. (This is not the default and you probably don't
# need this.)
# To get the latest-amd64 digest for gcr.io/distroless/base,
# assuming that $GOPATH/bin is in your $PATH, run:
# go install github.com/google/go-containerregistry/cmd/crane@latest && crane digest gcr.io/distroless/base:latest-amd64
container_pull(
name = "dynamic_base",
registry = "gcr.io",
repository = "distroless/base",
digest = "sha256:eaddb8ca70848a43fab351226d9549a571f68d9427c53356114fedd3711b5d73"
)