blob: 9348a9b3c70a83acec2c04c63028f34908671dbb [file] [log] [blame]
Tim Windelschmidt961a7cc2024-01-13 21:00:02 +01001###############################################################################
2# Bazel now uses Bzlmod by default to manage external dependencies.
3# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
4#
5# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
6###############################################################################
7
8bazel_dep(name = "platforms", version = "0.0.8")
9single_version_override(
10 module_name = "platforms",
11 version = "0.0.8",
12 patches = [
13 "//third_party:platforms-add-uefi.patch",
14 ],
15 patch_strip = 1,
16)
17
18bazel_dep(name = "bazel_skylib", version = "1.5.0")
19bazel_dep(name = "rules_pkg", version = "0.9.1")
20bazel_dep(name = "rules_oci", version = "1.6.0")
21
22oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
23
24# Declare external images you need to pull, for example:
25oci.pull(
26 name = "distroless_base",
27 # 'latest' is not reproducible, but it's convenient.
28 # During the build we print a WARNING message that includes recommended 'digest' and 'platforms'
29 # values which you can use here in place of 'tag' to pin for reproducibility.
30 digest = "sha256:6c1e34e2f084fe6df17b8bceb1416f1e11af0fcdb1cef11ee4ac8ae127cb507c",
31 image = "gcr.io/distroless/base",
32 platforms = ["linux/amd64", "linux/arm64/v8"],
33)
34
35# For each oci.pull call, repeat the "name" here to expose them as dependencies.
36use_repo(oci, "distroless_base")