Skip to content

v0.3.28

Choose a tag to compare

@github-actions github-actions released this 02 Dec 08:30
· 5 commits to main since this release

Using Bzlmod

Add the following to your MODULE.bazel file:

bazel_dep(name = "rules_img", version = "0.3.28")

For further instructions, see the README.

Using WORKSPACE

Add the following to your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_img",
    sha256 = "d3ebac50695c01cfab5def39d53fb1d273b09b4700e58da3726cceade4e2896d",
    urls = ["https://github.com/bazel-contrib/rules_img/releases/download/v0.3.28/rules_img-v0.3.28.tar.gz"],
)

# Load dependencies
load("@rules_img//img:dependencies.bzl", "rules_img_dependencies")
rules_img_dependencies()

# Initialize Bazel Features
load("@bazel_features//:deps.bzl", "bazel_features_deps")

# Register prebuilt toolchains
load("@rules_img//img:repositories.bzl", "img_register_prebuilt_toolchains")
img_register_prebuilt_toolchains()
register_toolchains("@img_toolchain//:all")

# Register hermetic launcher toolchains
register_toolchains("@hermetic_launcher//launcher/private/prebuilt:all")

# Example: Pull a base image
load("@rules_img//img:pull.bzl", "pull")
pull(
    name = "alpine",
    digest = "sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1",
    registry = "index.docker.io",
    repository = "library/alpine",
    tag = "3.22",
)

For more examples, see the README.

What's Changed

  • chore(bcr): replace EOL presubmit platforms, test img_tool on Bazel 8 by @malt3 in #902
  • fix(sbom): require rules_img 0.3.27 by @malt3 in #904
  • feat(sbom): scan layers by default by @malt3 in #905
  • fix(signing): build signer plugins for the host and the target platform by @malt3 in #907
  • feat(sbom): make the SBOM output group name configurable by @malt3 in #908
  • fix(push): don't let pre-signed blob redirects expire mid-push by @malt3 in #903
  • feat(test): resolve symlinks in image_structure_test file checks by @malt3 in #909
  • load incrementally into Apple's container daemon by @malt3 in #911
  • prepare 0.3.28 by @malt3 in #910

Full Changelog: v0.3.27...v0.3.28