From 5667d6d36524326d39cc956a8c4e5c1dfbabe2ca Mon Sep 17 00:00:00 2001 From: Kris Foster Date: Fri, 6 Oct 2023 14:55:56 +0100 Subject: [PATCH] multi-arch experiment --- WORKSPACE.bazel | 16 ++++++++++++---- projects/go_web/BUILD.bazel | 7 +++++++ 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index 390fa0ac..c16b92db 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -46,11 +46,19 @@ http_archive( urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.7.0/rules_nodejs-5.7.0.tar.gz"], ) -http_archive( +# http_archive( +# name = "rules_oci", +# sha256 = "176e601d21d1151efd88b6b027a24e782493c5d623d8c6211c7767f306d655c8", +# strip_prefix = "rules_oci-1.2.0", +# url = "https://github.com/bazel-contrib/rules_oci/releases/download/v1.2.0/rules_oci-v1.2.0.tar.gz", +# ) + +load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") +git_repository( name = "rules_oci", - sha256 = "176e601d21d1151efd88b6b027a24e782493c5d623d8c6211c7767f306d655c8", - strip_prefix = "rules_oci-1.2.0", - url = "https://github.com/bazel-contrib/rules_oci/releases/download/v1.2.0/rules_oci-v1.2.0.tar.gz", + commit = "3a94776886bf044261d56c97246bc4c11ed76cdc", + remote = "https://github.com/illicitonion/rules_oci.git", + verbose = False, ) http_archive( diff --git a/projects/go_web/BUILD.bazel b/projects/go_web/BUILD.bazel index fa157825..708e0446 100644 --- a/projects/go_web/BUILD.bazel +++ b/projects/go_web/BUILD.bazel @@ -71,6 +71,13 @@ oci_image_index( ], ) +oci_tarball( + name = "multi_arch_tarball", + format = "oci", + image = ":multi_arch_image", + repo_tags = ["projects/go_web:oci_tarball_multi_arch"], +) + oci_push( name = "publish", image = ":multi_arch_image",