From e0bc65270a9efc6092276dfc8cf388dd557d63e7 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Thu, 17 Aug 2023 15:03:10 -0400 Subject: [PATCH] Now with cacheable image artifacts --- MODULE.bazel | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index 90cf609..0acd7a8 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -5,7 +5,7 @@ module( bazel_dep(name = "gazelle", version = "0.32.0") bazel_dep(name = "rules_go", version = "0.41.0") -bazel_dep(name = "rules_oci", version = "1.3.0") +bazel_dep(name = "rules_oci", version = "1.3.1") bazel_dep(name = "rules_pkg", version = "0.9.1") bazel_dep(name = "platforms", version = "0.0.7") @@ -13,16 +13,20 @@ go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps") go_deps.from_file(go_mod = "//:go.mod") use_repo(go_deps, "com_github_stretchr_testify", "org_uber_go_zap") - toolchains = use_extension("@rules_go//go/toolchain:toolchains.bzl", "declare_constraints") toolchains.declare_constraints() oci = use_extension("@rules_oci//oci:extensions.bzl", "oci") oci.pull( - platforms = ["linux/amd64"], name = "distroless_base", - tag = "latest", + digest = "sha256:73deaaf6a207c1a33850257ba74e0f196bc418636cada9943a03d7abea980d6d", image = "gcr.io/distroless/base", + platforms = [ + "linux/amd64", + "linux/arm", + "linux/arm64", + "linux/ppc64le", + "linux/s390x", + ], ) - use_repo(oci, "distroless_base")