working oci images and pushes

main
Nick Dumas 1 year ago
parent 83f869f938
commit e25f3a95f2

@ -15,8 +15,14 @@ use_repo(go_deps, "com_github_therealfakemoot_go_telnet")
oci = use_extension("@rules_oci//oci:extensions.bzl", "oci") oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
oci.pull( oci.pull(
name = "distroless_base", name = "distroless_base",
digest = "sha256:73deaaf6a207c1a33850257ba74e0f196bc418636cada9943a03d7abea980d6d",
image = "gcr.io/distroless/base", image = "gcr.io/distroless/base",
tag = "latest", platforms = [
"linux/amd64",
"linux/arm",
"linux/arm64",
"linux/ppc64le",
"linux/s390x",
],
) )
use_repo(oci, "distroless_base") use_repo(oci, "distroless_base")

@ -20,7 +20,7 @@ pkg_tar(
srcs = [":echo"], srcs = [":echo"],
) )
load("@rules_oci//oci:defs.bzl", "oci_image") load("@rules_oci//oci:defs.bzl", "oci_image", "oci_push")
oci_image( oci_image(
name = "image", name = "image",
@ -28,3 +28,10 @@ oci_image(
entrypoint = ["/echo"], entrypoint = ["/echo"],
tars = [":tar"], tars = [":tar"],
) )
oci_push(
name = "registry",
image = ":image",
repository = "code.ndumas.com/ndumas/gomud",
remote_tags = ["latest"],
)

Loading…
Cancel
Save