Skip to content

Commit

Permalink
Compress tars for oci_image
Browse files Browse the repository at this point in the history
as they are no longer re-compressed automatically with rules_oci v2
  • Loading branch information
mering committed Sep 16, 2024
1 parent 1f02383 commit 3fc7700
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/go/cmd/app-rollout-controller/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ go_binary(
pkg_tar(
name = "app-rollout-controller-image-layer",
srcs = [":app-rollout-controller-app"],
extension = "tar.gz",
)

oci_image(
Expand Down
2 changes: 2 additions & 0 deletions src/go/cmd/chart-assignment-controller/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ pkg_tar(
name = "helm-image-layer",
package_dir = "/home/nonroot/",
deps = [":helm-config"],
extension = "tar.gz",
)

go_binary(
Expand All @@ -62,6 +63,7 @@ go_binary(
pkg_tar(
name = "chart-assignment-controller-layer",
srcs = [":chart-assignment-controller-app"],
extension = "tar.gz",
)

oci_image(
Expand Down
1 change: 1 addition & 0 deletions src/go/cmd/cr-syncer/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ go_binary(
pkg_tar(
name = "cr-syncer-image-layer",
srcs = [":cr-syncer-app"],
extension = "tar.gz",
)

oci_image(
Expand Down
1 change: 1 addition & 0 deletions src/go/cmd/gcr-credential-refresher/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ go_binary(
pkg_tar(
name = "gcr-credential-refresher-image-layer",
srcs = [":gcr-credential-refresher-app"],
extension = "tar.gz",
)

oci_image(
Expand Down
1 change: 1 addition & 0 deletions src/go/cmd/http-relay-client/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ go_binary(
pkg_tar(
name = "http-relay-client-image-layer",
srcs = [":http-relay-client-app"],
extension = "tar.gz",
)

oci_image(
Expand Down
1 change: 1 addition & 0 deletions src/go/cmd/http-relay-server/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ go_binary(
pkg_tar(
name = "http-relay-server-image-layer",
srcs = [":http-relay-server-app"],
extension = "tar.gz",
)

oci_image(
Expand Down
1 change: 1 addition & 0 deletions src/go/cmd/metadata-server/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ go_binary(
pkg_tar(
name = "metadata-server-image-layer",
srcs = [":metadata-server-app"],
extension = "tar.gz",
)

oci_image(
Expand Down
2 changes: 2 additions & 0 deletions src/go/cmd/setup-robot/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ pkg_tar(
"@kubernetes_helm//:helm",
],
package_dir = "/setup-robot-files",
extension = "tar.gz",
)

oci_image(
Expand All @@ -72,6 +73,7 @@ go_binary(
pkg_tar(
name = "setup-robot-image-layer",
srcs = [":setup-robot-app"],
extension = "tar.gz",
)

oci_image(
Expand Down
1 change: 1 addition & 0 deletions src/go/cmd/token-vendor/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ go_binary(
pkg_tar(
name = "token-vendor-image-layer",
srcs = [":token-vendor-app"],
extension = "tar.gz",
)

oci_image(
Expand Down

0 comments on commit 3fc7700

Please sign in to comment.