load("@rules_pkg//:pkg.bzl", "pkg_tar") pkg_tar( name = "remotecliv1_linux_tarball", srcs = [ "//cmd/sds/emergencyaccess/v1/remotecliv1:remotecliv1_linux", ], extension = "tar.gz", files = { "//cmd/sds/emergencyaccess/v1/remotecliv1:remotecliv1_linux": "remotecliv1", }, mode = "755", ) pkg_tar( name = "remotecliv1_darwin_tarball", srcs = [ "//cmd/sds/emergencyaccess/v1/remotecliv1:remotecliv1_darwin", ], extension = "tar.gz", files = { "//cmd/sds/emergencyaccess/v1/remotecliv1:remotecliv1_darwin": "remotecliv1", }, mode = "755", ) pkg_tar( name = "remotecli_linux_tarball", srcs = [ "//cmd/sds/emergencyaccess/remotecli:remotecli_linux", ], extension = "tar.gz", files = { "//cmd/sds/emergencyaccess/remotecli:remotecli_linux": "remotecli", }, mode = "755", ) pkg_tar( name = "remotecli_darwin_tarball", srcs = [ "//cmd/sds/emergencyaccess/remotecli:remotecli_darwin", ], extension = "tar.gz", files = { "//cmd/sds/emergencyaccess/remotecli:remotecli_darwin": "remotecli", }, mode = "755", ) genrule( name = "push_remotecli_tarballs", srcs = [ "push_remotecli_tarballs.sh", ":remotecliv1_linux_tarball", ":remotecliv1_darwin_tarball", ":remotecli_linux_tarball", ":remotecli_darwin_tarball", ], outs = ["push_binary_tarballs.sh"], cmd = "./$(location push_remotecli_tarballs.sh) $@ $(location :remotecliv1_linux_tarball) $(location :remotecliv1_darwin_tarball) $(location :remotecli_linux_tarball) $(location :remotecli_darwin_tarball)", executable = 1, stamp = 1, )