forked from chainguard-dev/rules_apko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMODULE.bazel
58 lines (51 loc) · 1.87 KB
/
MODULE.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
"Bazel dependencies"
module(
name = "rules_apko",
version = "0.0.0",
compatibility_level = 1,
)
bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "platforms", version = "0.0.8")
bazel_dep(name = "aspect_bazel_lib", version = "1.40.3")
# We need this fix https://github.com/aspect-build/bazel-lib/pull/713 to be able to generate docs
single_version_override(
module_name = "aspect_bazel_lib",
version = "2.5.3",
)
bazel_dep(name = "container_structure_test", version = "1.15.0", dev_dependency = True)
bazel_dep(name = "rules_pkg", version = "0.7.0", dev_dependency = True)
bazel_dep(name = "rules_oci", version = "1.3.3", dev_dependency = True)
bazel_dep(name = "gazelle", version = "0.34.0", dev_dependency = True, repo_name = "bazel_gazelle")
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True)
bazel_dep(name = "buildifier_prebuilt", version = "6.1.2", dev_dependency = True)
bazel_dep(name = "stardoc", version = "0.7.0", dev_dependency = True, repo_name = "io_bazel_stardoc")
toolchain = use_extension("//apko:extensions.bzl", "apko")
toolchain.toolchain(apko_version = "v0.14.2")
use_repo(toolchain, "apko_toolchains")
register_toolchains("@apko_toolchains//:all")
# locks
apk = use_extension(
"//apko:extensions.bzl",
"apko",
dev_dependency = True,
)
apk.translate_lock(
name = "examples_lock",
lock = "//examples/lock:apko.lock.json",
)
apk.translate_lock(
name = "examples_wolfi_base",
lock = "//examples/wolfi-base:apko.lock.json",
)
apk.translate_lock(
name = "examples_oci",
lock = "//examples/oci:apko.lock.json",
)
apk.translate_lock(
name = "examples_multi_arch_and_repo",
lock = "//examples/multi_arch_and_repo:apko.lock.json",
)
use_repo(apk, "examples_multi_arch_and_repo")
use_repo(apk, "examples_lock")
use_repo(apk, "examples_wolfi_base")
use_repo(apk, "examples_oci")