cert-manager/build
irbekrm 1cb4406e3c Remove select statement for base
We use the same base for all arches

Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-06-01 08:47:28 +01:00
..
release-tars Remove UBI 2020-05-01 15:24:27 +02:00
BUILD.bazel Use stamping and last commit year 2020-10-08 16:56:07 +02:00
container.bzl Remove select statement for base 2021-06-01 08:47:28 +01:00
files.bzl Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
go_binary.bzl Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
helm.bzl Revert "Add ArtifcactHUB pre-release annotation to the Helm chart" 2021-05-27 12:16:06 +01:00
images.bzl update distroless/static base images to latest version 2021-05-20 18:33:03 +01:00
licensing.bzl Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
platforms.bzl Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
README.md Add a note on stamping 2021-06-01 08:46:49 +01:00
version.bzl Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00

Images

Stamping

Bazel has a concept of stamping which allows embedding additional information into binaries and ensuring that those binaries get rebuilt when the information changes. The additional information has to come from Bazel's stable workspace variables, see https://docs.bazel.build/versions/master/user-manual.html#workspace_status. Stamping can be used with rules that have the stamp attribute such as go_image. To enable stamping on a particular rule and build, we set stamp = True on the rule and pass --stamp to the bazel build command.

We use stamping to tag images with a name of a Docker registry and a version and ensure that if a different registry or version is specified, the image will be re-bundled.

Stamping values come from STABLE_DOCKER_REGISTRY, STABLE_DOCKER_TAG stable workspace variables declared in ./hack/build/print-workspace-status.sh. This script will be run before every Bazel build as specified in our in .bazelrc file.