diff --git a/modules/rules_apko/1.0.0-rc1/MODULE.bazel b/modules/rules_apko/1.0.0-rc1/MODULE.bazel new file mode 100644 index 00000000000..aa33869f3eb --- /dev/null +++ b/modules/rules_apko/1.0.0-rc1/MODULE.bazel @@ -0,0 +1,51 @@ +"Bazel dependencies" + +module( + name = "rules_apko", + version = "1.0.0-rc1", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.4.2") +bazel_dep(name = "platforms", version = "0.0.5") +bazel_dep(name = "aspect_bazel_lib", version = "1.34.5") + +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.29.0", dev_dependency = True, repo_name = "bazel_gazelle") +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True) +bazel_dep(name = "buildifier_prebuilt", version = "6.1.0", dev_dependency = True) + +toolchain = use_extension("//apko:extensions.bzl", "apko") +toolchain.toolchain(apko_version = "v0.11.0") +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.resolved.json", +) +apk.translate_lock( + name = "examples_wolfi_base", + lock = "//examples/wolfi-base:apko.resolved.json", +) +apk.translate_lock( + name = "examples_oci", + lock = "//examples/oci:apko.resolved.json", +) +apk.translate_lock( + name = "examples_multi_arch_and_repo", + lock = "//examples/multi_arch_and_repo:apko.resolved.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") diff --git a/modules/rules_apko/1.0.0-rc1/patches/module_dot_bazel_version.patch b/modules/rules_apko/1.0.0-rc1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..b82780c3501 --- /dev/null +++ b/modules/rules_apko/1.0.0-rc1/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "Bazel dependencies" + + module( + name = "rules_apko", +- version = "0.0.0", ++ version = "1.0.0-rc1", + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_skylib", version = "1.4.2") diff --git a/modules/rules_apko/1.0.0-rc1/presubmit.yml b/modules/rules_apko/1.0.0-rc1/presubmit.yml new file mode 100644 index 00000000000..62669f7f6d0 --- /dev/null +++ b/modules/rules_apko/1.0.0-rc1/presubmit.yml @@ -0,0 +1,10 @@ +bcr_test_module: + module_path: "e2e/smoke" + matrix: + platform: ["debian10", "macos", "ubuntu2004"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + test_targets: + - "//..." diff --git a/modules/rules_apko/1.0.0-rc1/source.json b/modules/rules_apko/1.0.0-rc1/source.json new file mode 100644 index 00000000000..b6a5015ef7e --- /dev/null +++ b/modules/rules_apko/1.0.0-rc1/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-XJGiMivshKAAXdgXhJV3WTi1gQU4EucNIbAwvvNiViM=", + "strip_prefix": "rules_apko-1.0.0-rc1", + "url": "https://github.com/chainguard-dev/rules_apko/releases/download/v1.0.0-rc1/rules_apko-v1.0.0-rc1.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-dhvTkKD8a31c136FbvKBxMR/ylPYM62c+nOYMywJm3Y=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_apko/metadata.json b/modules/rules_apko/metadata.json index b8d096c2d19..838819d8901 100644 --- a/modules/rules_apko/metadata.json +++ b/modules/rules_apko/metadata.json @@ -21,7 +21,8 @@ "github:chainguard-dev/rules_apko" ], "versions": [ - "0.2.3" + "0.2.3", + "1.0.0-rc1" ], "yanked_versions": {} }