1load("@rules_pkg//:pkg.bzl", "pkg_tar") 2 3pkg_tar( 4 name = "targets", 5 srcs = glob( 6 include = ["**/*"], 7 exclude = ["BUILD.bazel"], 8 ), 9 # srcs = glob(["**"]), 10 package_dir = "manifests", 11 strip_prefix = ".", # can you believe that this maintains the folder structure and doesnt flatten it? 12 visibility = ["//visibility:public"], 13) 14 15filegroup( 16 name = "target_files", 17 srcs = glob(["**/*.yaml"]), 18 visibility = ["//visibility:public"], 19)