mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 17:49:09 +00:00
chore: restructure bazel macros
This commit is contained in:
parent
a33aa3841c
commit
a0b4392b05
54 changed files with 80 additions and 56 deletions
1
hack/bazel/docker/BUILD.bazel
Normal file
1
hack/bazel/docker/BUILD.bazel
Normal file
|
@ -0,0 +1 @@
|
|||
package(default_visibility = ["//visibility:public"])
|
17
hack/bazel/docker/publish.bzl
Normal file
17
hack/bazel/docker/publish.bzl
Normal file
|
@ -0,0 +1,17 @@
|
|||
load("@io_bazel_rules_docker//container:container.bzl", "container_push")
|
||||
|
||||
def publish(
|
||||
service,
|
||||
name = "+publish",
|
||||
image = ":image",
|
||||
prefix = "roleypoly/roleypoly/",
|
||||
registry = "docker.pkg.github.com",
|
||||
):
|
||||
container_push(
|
||||
name = name,
|
||||
format = "Docker",
|
||||
image = image,
|
||||
registry = registry,
|
||||
repository = prefix + service,
|
||||
tag = "{STABLE_URL_SAFE_TAG}",
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue