Fine tune manual targets

This commit is contained in:
Mustafa Gezen 2022-10-30 04:24:33 +01:00
parent 6e213b3263
commit f96781d3c5
Signed by untrusted user who does not match committer: mustafa
GPG Key ID: DCDF010D946438C1
5 changed files with 32 additions and 2 deletions

View File

@ -8,29 +8,34 @@ container_image(
"//platforms:s390x": "@go_base_s390x//image",
"//platforms:ppc64le": "@go_base_ppc64le//image",
}),
tags = ["manual"],
visibility = ["//visibility:public"],
)
container_image(
name = "go_arm64",
base = "@go_base_arm64//image",
tags = ["manual"],
visibility = ["//visibility:public"],
)
container_image(
name = "go_amd64",
base = "@go_base_amd64//image",
tags = ["manual"],
visibility = ["//visibility:public"],
)
container_image(
name = "go_s390x",
base = "@go_base_s390x//image",
tags = ["manual"],
visibility = ["//visibility:public"],
)
container_image(
name = "go_ppc64le",
base = "@go_base_ppc64le//image",
tags = ["manual"],
visibility = ["//visibility:public"],
)

View File

@ -3,24 +3,28 @@ load("@io_bazel_rules_docker//container:container.bzl", "container_image")
container_image(
name = "build_arm64",
base = "@build_base_arm64//image",
tags = ["manual"],
visibility = ["//visibility:public"],
)
container_image(
name = "build_amd64",
base = "@build_base_amd64//image",
tags = ["manual"],
visibility = ["//visibility:public"],
)
container_image(
name = "build_s390x",
base = "@build_base_s390x//image",
tags = ["manual"],
visibility = ["//visibility:public"],
)
container_image(
name = "build_ppc64le",
base = "@build_base_ppc64le//image",
tags = ["manual"],
visibility = ["//visibility:public"],
)
@ -32,5 +36,6 @@ container_image(
"//platforms:s390x": "@build_base_s390x//image",
"//platforms:ppc64le": "@build_base_ppc64le//image",
}),
tags = ["manual"],
visibility = ["//visibility:public"],
)

View File

@ -21,8 +21,15 @@ go_library(
go_binary(
name = "initdb",
embed = [":initdb_lib"],
visibility = ["//visibility:public"],
)
go_binary(
name = "initdb_amd64",
embed = [":initdb_lib"],
goarch = "amd64",
goos = "linux",
tags = ["manual"],
visibility = ["//visibility:public"],
)
@ -31,6 +38,7 @@ go_binary(
embed = [":initdb_lib"],
goarch = "arm64",
goos = "linux",
tags = ["manual"],
visibility = ["//visibility:public"],
)
@ -39,6 +47,7 @@ go_binary(
embed = [":initdb_lib"],
goarch = "s390x",
goos = "linux",
tags = ["manual"],
visibility = ["//visibility:public"],
)
@ -47,6 +56,7 @@ go_binary(
embed = [":initdb_lib"],
goarch = "ppc64le",
goos = "linux",
tags = ["manual"],
visibility = ["//visibility:public"],
)
@ -54,7 +64,7 @@ container(
architecture = "amd64",
base = "//bases/bazel/go:go_amd64",
files = [
":initdb",
":initdb_amd64",
],
image_name = "initdb",
)

View File

@ -28,11 +28,18 @@ go_library(
],
)
go_binary(
name = "peridotbuilder",
embed = [":peridotbuilder_lib"],
visibility = ["//visibility:public"],
)
go_binary(
name = "peridotbuilder_amd64",
embed = [":peridotbuilder_lib"],
goarch = "amd64",
goos = "linux",
tags = ["manual"],
visibility = ["//visibility:public"],
)
@ -41,6 +48,7 @@ go_binary(
embed = [":peridotbuilder_lib"],
goarch = "arm64",
goos = "linux",
tags = ["manual"],
visibility = ["//visibility:public"],
)
@ -49,6 +57,7 @@ go_binary(
embed = [":peridotbuilder_lib"],
goarch = "s390x",
goos = "linux",
tags = ["manual"],
visibility = ["//visibility:public"],
)
@ -57,5 +66,6 @@ go_binary(
embed = [":peridotbuilder_lib"],
goarch = "ppc64le",
goos = "linux",
tags = ["manual"],
visibility = ["//visibility:public"],
)

View File

@ -29,7 +29,7 @@ def container(image_name, files, tars_to_layer = [], base = "//bases/bazel/go",
tars = tars_to_layer,
visibility = [":__subpackages__"],
)
extra_layers += [layer_name]
extra_layers.append(layer_name)
if not architecture:
container_image(