Skip to content

v0.3.7

Choose a tag to compare

@github-actions github-actions released this 14 Apr 09:38
· 10 commits to main since this release
ab50c6a

Using Bzlmod

Add the following to your MODULE.bazel file:

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

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 = "a0d469e1bfcdc3c27dc5be8d99da12be4db3edfb7a8bdd457a8be7519572d0b8",
    urls = ["https://github.com/bazel-contrib/rules_img/releases/download/v0.3.7/rules_img-v0.3.7.tar.gz"],
)

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

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

# Register prebuilt pull_tool repositories (for pull functionality)
pull_tool_register_prebuilt_repositories()

# 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

  • fix various small linting issues by @malt3 in #449
  • feat: add purl package_metadata to pulled image repos by @malt3 in #451
  • (feat) Add support for setting the media-type on intermediate or config layers by @jeffmace in #429
  • image_manifest: Support setting artifactType by @malt3 in #455
  • fix: increase bufio.Scanner buffer to 1 MB in layer hints readers by @mortenmj in #458
  • prepare 0.3.7 by @malt3 in #460

New Contributors

Full Changelog: v0.3.6...v0.3.7