Now with cacheable image artifacts

bazel
Nick Dumas 1 year ago
parent df242e038b
commit e0bc65270a

@ -5,7 +5,7 @@ module(
bazel_dep(name = "gazelle", version = "0.32.0") bazel_dep(name = "gazelle", version = "0.32.0")
bazel_dep(name = "rules_go", version = "0.41.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 = "rules_pkg", version = "0.9.1")
bazel_dep(name = "platforms", version = "0.0.7") 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") go_deps.from_file(go_mod = "//:go.mod")
use_repo(go_deps, "com_github_stretchr_testify", "org_uber_go_zap") use_repo(go_deps, "com_github_stretchr_testify", "org_uber_go_zap")
toolchains = use_extension("@rules_go//go/toolchain:toolchains.bzl", "declare_constraints") toolchains = use_extension("@rules_go//go/toolchain:toolchains.bzl", "declare_constraints")
toolchains.declare_constraints() toolchains.declare_constraints()
oci = use_extension("@rules_oci//oci:extensions.bzl", "oci") oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
oci.pull( oci.pull(
platforms = ["linux/amd64"],
name = "distroless_base", name = "distroless_base",
tag = "latest", digest = "sha256:73deaaf6a207c1a33850257ba74e0f196bc418636cada9943a03d7abea980d6d",
image = "gcr.io/distroless/base", image = "gcr.io/distroless/base",
platforms = [
"linux/amd64",
"linux/arm",
"linux/arm64",
"linux/ppc64le",
"linux/s390x",
],
) )
use_repo(oci, "distroless_base") use_repo(oci, "distroless_base")

Loading…
Cancel
Save