bootstrapper: package as tar

This commit is contained in:
Malte Poll 2023-09-11 15:46:13 +02:00 committed by Malte Poll
parent 9a5566de21
commit 200fc79e0c

View File

@ -1,4 +1,5 @@
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("//bazel/go:platform.bzl", "platform_binary")
go_library(
@ -64,3 +65,13 @@ platform_binary(
target_file = ":bootstrapper",
visibility = ["//visibility:public"],
)
pkg_tar(
name = "bootstrapper-package",
srcs = [
":bootstrapper_linux_amd64",
],
mode = "0755",
remap_paths = {"/platform:linux_amd64_gnu.2.23": "/usr/sbin/bootstrapper"},
visibility = ["//visibility:public"],
)