Skip to content

Commit

Permalink
Update scala.md: oci_tarball was renamed (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle authored Oct 24, 2024
1 parent 8042fcb commit c3bf620
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/scala.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ oci_image(
Finally, create a tarball from `oci_image` that can be loaded by a runtime such as docker. We specify `repo_tags` so that the image can be loaded by a registry.

```python
load("@rules_oci//oci:defs.bzl", "oci_tarball")
load("@rules_oci//oci:defs.bzl", "oci_load")

oci_tarball(
name = "tarball",
oci_load(
name = "load",
image = ":image",
repo_tags = ["my-repository:latest"],
)
Expand All @@ -169,7 +169,7 @@ oci_tarball(
Test if it works:

```shell
$ bazel run //:tarball
$ bazel run //:load
...
$ docker run --rm my-repository:latest
Hello, world!
Expand Down

0 comments on commit c3bf620

Please sign in to comment.