load("@aspect_bazel_lib//lib:copy_to_directory.bzl", "copy_to_directory") load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_file") load("@rules_oci//oci:defs.bzl", "oci_image") load("//hack/build/rules/container:index.bzl", "container_push") # load(":version.bzl", "REPO", "VERSION") load(":version.bzl", "VERSION") package(default_visibility = ["//visibility:public"]) copy_to_directory( name = "rancher_kustomizations", srcs = ["@rancher_local_storage_manifests//:file"], out = "rancher-kustomizations", allow_overwrites = True, exclude_srcs_patterns = [ "example-config.yaml", "provisioner.yaml", ], include_external_repositories = ["**"], include_srcs_patterns = ["**.yaml"], ) write_source_file( name = "write_rancher_manifests", in_file = ":rancher_kustomizations", out_file = "base", ) oci_image( name = "local-path-provisioner", base = "@local_path_provisioner", tags = ["manual"], ) container_push( image = ":local-path-provisioner", # image_name = REPO, image_name = "rancher/local-path-provisioner", repository_file = "//hack/build/rules/container:thirdparty-repo", tag = "v{0}".format(VERSION), )