You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
670 B

load("@gazelle//:def.bzl", "gazelle")
load("@rules_go//go:def.bzl", "go_binary", "go_library")
load("@rules_oci//oci:defs.bzl", "oci_image", "oci_push", "oci_tarball")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
# gazelle:prefix hello
gazelle(name = "gazelle")
pkg_tar(
name = "tar",
srcs = [":godine"],
)
oci_image(
name = "image",
base = "@alpine",
entrypoint = ["/godine"],
tars = [":tar"],
)
oci_tarball(
name = "tarball",
image = ":image",
repo_tags = ["ghcr.io/blackhorseya/godine:latest"],
)
oci_push(
name = "push",
image = ":image",
remote_tags = ["latest"],
repository = "ghcr.io/blackhorseya/godine",
)