cert-manager/build
irbekrm bb2bf6494b Pass the Go binary arg explicitly (for clarity)
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-06-01 09:09:05 +01:00
..
release-tars Remove UBI 2020-05-01 15:24:27 +02:00
BUILD.bazel Pass the Go binary arg explicitly (for clarity) 2021-06-01 09:09:05 +01:00
container.bzl Pass the Go binary arg explicitly (for clarity) 2021-06-01 09:09:05 +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 Allow to build cert-manager images with a custom base image 2021-06-01 08:48:51 +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.