load("@rules_pkg//:pkg.bzl", "pkg_tar") pkg_tar( name = "targets", srcs = glob( include = ["**/*"], exclude = ["BUILD.bazel"], ), # srcs = glob(["**"]), package_dir = "manifests", strip_prefix = ".", # can you believe that this maintains the folder structure and doesnt flatten it? visibility = ["//visibility:public"], ) filegroup( name = "target_files", srcs = glob(["**/*.yaml"]), visibility = ["//visibility:public"], )