Skip to content

Commit 374465a

Browse files
committed
Clean up OCI targets
1 parent 52e0f76 commit 374465a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

deploys/docker/docker.bzl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@rules_oci//oci:defs.bzl", "oci_image", "oci_tarball")
1+
load("@rules_oci//oci:defs.bzl", "oci_image", "oci_push")
22

33
def docker_image(name, repo_tags = [], ports = [], visibility = None, **kwargs):
44
if len(ports) != 0:
@@ -10,9 +10,10 @@ def docker_image(name, repo_tags = [], ports = [], visibility = None, **kwargs):
1010
**kwargs
1111
)
1212

13-
oci_tarball(
14-
name = "%s.tar" % name,
13+
oci_push(
14+
name = "%s.push" % name,
1515
image = ":%s" % name,
16-
repo_tags = repo_tags,
16+
remote_tags = repo_tags,
17+
repository = "index.docker.io/shs/%s" % name,
1718
visibility = visibility,
1819
)

0 commit comments

Comments
 (0)