Skip to content

Commit

Permalink
fix(release-controller): add missing bins
Browse files Browse the repository at this point in the history
  • Loading branch information
CI Automation committed Sep 6, 2024
1 parent cdf0667 commit 0e4f247
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
12 changes: 9 additions & 3 deletions release-controller/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,27 @@ py_test(
)

tar(
name = "bins_tar",
srcs = [":bazelisk", ":target_determinator", "//rs/cli:dre"],
name = "bins_release_controller_tar",
srcs = ["//rs/cli:dre"],
)

tar(
name = "bins_commit_annotator_tar",
srcs = [":bazelisk", ":target_determinator"],
)

py_oci_image(
name = "oci_image",
base = "@bazel_image_6_5_0",
binary = ":release_controller",
tars = [":bins_release_controller_tar"]
)

py_oci_image(
name = "oci_image_commit_annotator",
base = "@bazel_image_6_5_0",
binary = ":commit_annotator",
tars = [":bins_tar"]
tars = [":bins_commit_annotator_tar"]
)

exports_files(["README.md"])
3 changes: 3 additions & 0 deletions release-controller/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ def resolve_binary(name: str):
binary_local = os.path.join(os.path.dirname(__file__), name)
if os.path.exists(binary_local):
return binary_local
binary_local = os.path.join("/rs/cli", name)
if name == "dre" and os.path.exists(binary_local):
return binary_local
return name

0 comments on commit 0e4f247

Please sign in to comment.