forked from bazel-contrib/rules_oci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
95 lines (65 loc) · 2.68 KB
/
WORKSPACE
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Declare the local Bazel workspace.
# This is *not* included in the published distribution.
workspace(name = "rules_oci")
load(":internal_deps.bzl", "rules_oci_internal_deps")
# Fetch deps needed only locally for development
rules_oci_internal_deps()
load("//oci:dependencies.bzl", "rules_oci_dependencies")
# Fetch our "runtime" dependencies which users need as well
rules_oci_dependencies()
load("//oci:repositories.bzl", "LATEST_CRANE_VERSION", "LATEST_ZOT_VERSION", "oci_register_toolchains")
oci_register_toolchains(
name = "oci",
crane_version = LATEST_CRANE_VERSION,
zot_version = LATEST_ZOT_VERSION,
)
load("//cosign:repositories.bzl", "cosign_register_toolchains")
cosign_register_toolchains(name = "oci_cosign")
# For running our own unit tests
load("@bazel_skylib//lib:unittest.bzl", "register_unittest_toolchains")
register_unittest_toolchains()
load("@container_structure_test//:repositories.bzl", "container_structure_test_register_toolchain")
container_structure_test_register_toolchain(name = "container_structure_test")
############################################
# Gazelle, for generating bzl_library targets
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.17.2")
gazelle_dependencies()
# Rules pkg
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()
# Belongs to examples
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# JS
http_archive(
name = "aspect_rules_js",
sha256 = "dda5fee3926e62c483660b35b25d1577d23f88f11a2775e3555b57289f4edb12",
strip_prefix = "rules_js-1.6.9",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.6.9.tar.gz",
)
load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
rules_js_dependencies()
load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")
# Workaround for Bazel 5 support
aspect_bazel_lib_dependencies(override_local_config_platform = True)
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "nodejs",
node_version = DEFAULT_NODE_VERSION,
)
# For sign_external test
new_local_repository(
name = "empty_image",
build_file = "//examples/sign_external:BUILD.template",
path = "examples/sign_external/workspace",
)
# For attest_external test
new_local_repository(
name = "example_sbom",
build_file = "//examples/attest_external:BUILD.template",
path = "examples/attest_external/workspace",
)
load(":fetch.bzl", "fetch_images")
fetch_images()