-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release: https://github.com/bazel-contrib/rules_oci/releases/tag/v2.0.0-beta1 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Sahin Yort <[email protected]>
- Loading branch information
1 parent
e0c7e7d
commit 1e3a3c3
Showing
5 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
"bazel-contrib/rules_oci" | ||
|
||
module( | ||
name = "rules_oci", | ||
version = "2.0.0-beta1", | ||
compatibility_level = 1, | ||
) | ||
|
||
bazel_dep(name = "aspect_bazel_lib", version = "2.7.2") | ||
bazel_dep(name = "bazel_skylib", version = "1.5.0") | ||
bazel_dep(name = "platforms", version = "0.0.8") | ||
bazel_dep(name = "bazel_features", version = "1.10.0") | ||
|
||
oci = use_extension("//oci:extensions.bzl", "oci") | ||
oci.toolchains() | ||
use_repo(oci, "oci_crane_toolchains", "oci_regctl_toolchains") | ||
|
||
register_toolchains("@oci_crane_toolchains//:all", "@oci_regctl_toolchains//:all") | ||
|
||
# Workaround https://github.com/aspect-build/bazel-lib/pull/832 | ||
zstd = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") | ||
zstd.zstd() | ||
use_repo(zstd, "zstd_toolchains") | ||
|
||
register_toolchains("@zstd_toolchains//:all") | ||
|
||
bazel_lib = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") | ||
bazel_lib.jq() | ||
bazel_lib.tar() | ||
use_repo(bazel_lib, "bsd_tar_toolchains", "jq_toolchains") | ||
|
||
# Dev dependencies | ||
|
||
bazel_dep(name = "rules_go", version = "0.46.0", dev_dependency = True, repo_name = "io_bazel_rules_go") | ||
bazel_dep(name = "gazelle", version = "0.35.0", dev_dependency = True, repo_name = "bazel_gazelle") | ||
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True) |
14 changes: 14 additions & 0 deletions
14
modules/rules_oci/2.0.0-beta1/patches/module_dot_bazel_version.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
=================================================================== | ||
--- a/MODULE.bazel | ||
+++ b/MODULE.bazel | ||
@@ -1,9 +1,9 @@ | ||
"bazel-contrib/rules_oci" | ||
|
||
module( | ||
name = "rules_oci", | ||
- version = "0.0.0", | ||
+ version = "2.0.0-beta1", | ||
compatibility_level = 1, | ||
) | ||
|
||
bazel_dep(name = "aspect_bazel_lib", version = "2.7.2") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
bcr_test_module: | ||
module_path: "e2e/smoke" | ||
matrix: | ||
bazel: ["6.x", "7.x"] | ||
# TODO(#97): add windows | ||
platform: ["debian10", "ubuntu2004"] | ||
tasks: | ||
test_linux: | ||
name: "Run test module" | ||
bazel: ${{ bazel }} | ||
platform: ${{ platform }} | ||
test_targets: | ||
- "//..." | ||
test_macos: | ||
name: "Run test module" | ||
bazel: ${{ bazel }} | ||
platform: macos | ||
test_targets: | ||
- "//..." | ||
# This test requires a docker daemon, not available on BCR CI | ||
- "-//:test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"integrity": "sha256-9w8H+dDWwnXX7H08fyNtm1UroyBejzffnBElAxz5Z8w=", | ||
"strip_prefix": "rules_oci-2.0.0-beta1", | ||
"url": "https://github.com/bazel-contrib/rules_oci/releases/download/v2.0.0-beta1/rules_oci-v2.0.0-beta1.tar.gz", | ||
"patches": { | ||
"module_dot_bazel_version.patch": "sha256-fRz+lensd7vFsdThzrcarfK9+SRl9YUNCHP14R6IT6E=" | ||
}, | ||
"patch_strip": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters