Skip to content

Commit

Permalink
Publish bazel-contrib/[email protected] (#953)
Browse files Browse the repository at this point in the history
Co-authored-by: Sahin Yort <[email protected]>
  • Loading branch information
publish-to-bcr-bot[bot] and thesayyn authored Sep 26, 2023
1 parent 3765820 commit d754f36
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 1 deletion.
21 changes: 21 additions & 0 deletions modules/rules_oci/1.4.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"bazel-contrib/rules_oci"

module(
name = "rules_oci",
compatibility_level = 1,
version = "1.4.0",
)

bazel_dep(name = "aspect_bazel_lib", version = "1.32.0")
bazel_dep(name = "bazel_skylib", version = "1.4.1")
bazel_dep(name = "platforms", version = "0.0.5")

oci = use_extension("//oci:extensions.bzl", "oci")
oci.toolchains(crane_version = "v0.14.0")
use_repo(oci, "oci_crane_toolchains", "oci_crane_registry_toolchains", "oci_auth_config")

register_toolchains("@oci_crane_toolchains//:all", "@oci_crane_registry_toolchains//:all")

bazel_dep(name = "rules_pkg", version = "0.7.0", dev_dependency = True)
bazel_dep(name = "gazelle", version = "0.29.0", repo_name = "bazel_gazelle", dev_dependency = True)
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True)
14 changes: 14 additions & 0 deletions modules/rules_oci/1.4.0/patches/module_dot_bazel_version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
===================================================================
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -2,9 +2,9 @@

module(
name = "rules_oci",
compatibility_level = 1,
- version = "0.0.0",
+ version = "1.4.0",
)

bazel_dep(name = "aspect_bazel_lib", version = "1.32.0")
bazel_dep(name = "bazel_skylib", version = "1.4.1")
14 changes: 14 additions & 0 deletions modules/rules_oci/1.4.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
bcr_test_module:
module_path: "e2e/crane_as_registry"
matrix:
# TODO(#97): add windows
# File "C:/b/eznkjcld/external/rules_oci~override/oci/repositories.bzl", line 100, column 64, in _stucture_test_repo_impl
# integrity = ST_VERSIONS[repository_ctx.attr.st_version][platform],
# Error: key "windows-amd64" not found in dictionary
platform: ["debian10", "macos", "ubuntu2004"]
tasks:
run_tests:
name: "Run test module"
platform: ${{ platform }}
test_targets:
- "//..."
9 changes: 9 additions & 0 deletions modules/rules_oci/1.4.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-IafRT23fy4ynxfyf+mZ8k3zkYix9Kz4XrqH/vJDJa+0=",
"strip_prefix": "rules_oci-1.4.0",
"url": "https://github.com/bazel-contrib/rules_oci/releases/download/v1.4.0/rules_oci-v1.4.0.tar.gz",
"patches": {
"module_dot_bazel_version.patch": "sha256-yjeVCtJSqIedRF33/UChJESZWFu9OCkXO4USjk0nDRE="
},
"patch_strip": 1
}
3 changes: 2 additions & 1 deletion modules/rules_oci/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"1.3.0",
"1.3.1",
"1.3.2",
"1.3.3"
"1.3.3",
"1.4.0"
],
"yanked_versions": {}
}

0 comments on commit d754f36

Please sign in to comment.