chore: restructure bazel macros

This commit is contained in:
41666 2020-10-15 00:51:53 -04:00
parent a33aa3841c
commit a0b4392b05
54 changed files with 80 additions and 56 deletions

View file

@ -0,0 +1 @@
package(default_visibility = ["//visibility:public"])

View 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}",
)