Skip to content

v0.3.19

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Aug 17:09
c93884a

Using Bzlmod

Add the following to your MODULE.bazel file:

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

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 = "0f379d63a8856368656fbd363b6f0077114ea0f23ebce3b4afe40fd6514919c1",
    urls = ["https://github.com/bazel-contrib/rules_img/releases/download/v0.3.19/rules_img-v0.3.19.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

  • fix(release): attest the signer plugin release archive by @malt3 in #660
  • fix(release): release signer plugins via the shared release workflow by @malt3 in #661
  • report OpenTelemetry metrics from oci-distribution-gateway by @malt3 in #662
  • fix(load): stop mangling image names that carry a registry port by @malt3 in #663
  • fix(bcr): fix signer plugin BCR presubmit.yml by @malt3 in #664
  • feat(push): configure push at build time per image by @malt3 in #665
  • gateway: add a forwarding mode so credentials live in one deployment by @malt3 in #666
  • feat(gateway): memoize blob existence checks in serving mode by @malt3 in #667
  • feat(deploy): add crane-style progress logs for non-interactive deploys by @malt3 in #668
  • docs: document IMG_DISK_CACHE env var by @malt3 in #669
  • fix(cosign): strip build-from-source deps from released MODULE.bazel by @malt3 in #670
  • feat(registry): add --insecure for plain-HTTP registries by @malt3 in #671
  • feat(push): make --jobs the cap on destination registry connections by @malt3 in #672
  • update Go rules and deps by @malt3 in #673
  • fix(signer): release the signer plugins as prebuilt-only modules by @malt3 in #674
  • feat(gateway): keep the blob existence cache current from reads, pushes and deletes by @malt3 in #675
  • feat(base): add rules for building bespoke base images by @malt3 in #676
  • feat(services): add service image module by @malt3 in #678
  • perf: use relative symlinks for directory layouts on Bazel >= 7.1 by @malt3 in #679
  • feat(gateway): replicate the blob existence cache between instances by @malt3 in #680
  • ci: add linux-only job to build modules/rules_img_services by @malt3 in #681
  • prepare 0.3.19 by @malt3 in #682

Full Changelog: v0.3.18...v0.3.19