Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
publish-to-bcr-bot[bot] and Sahin Yort committed Jul 3, 2024
1 parent e0c7e7d commit 1e3a3c3
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 1 deletion.
36 changes: 36 additions & 0 deletions modules/rules_oci/2.0.0-beta1/MODULE.bazel
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)
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")
21 changes: 21 additions & 0 deletions modules/rules_oci/2.0.0-beta1/presubmit.yml
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"
9 changes: 9 additions & 0 deletions modules/rules_oci/2.0.0-beta1/source.json
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
}
3 changes: 2 additions & 1 deletion modules/rules_oci/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
"2.0.0-alpha3",
"2.0.0-alpha4",
"2.0.0-alpha5",
"2.0.0-beta0"
"2.0.0-beta0",
"2.0.0-beta1"
],
"yanked_versions": {}
}

0 comments on commit 1e3a3c3

Please sign in to comment.