Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
apesternikov committed Nov 28, 2022
1 parent 2abe34f commit 02f570f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion skylib/push.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ def _impl(ctx):
if K8sPushInfo in ctx.attr.image:
# the image was already pushed, just rename if needed. Ignore registry and repository parameters
kpi = ctx.attr.image[K8sPushInfo]
print("DefaultInfo:", ctx.attr.image, ctx.attr.image[DefaultInfo])
actual_pusher = ctx.attr.image[DefaultInfo].files_to_run.executable.short_path if ctx.attr.image[DefaultInfo].files_to_run.executable else '';
ctx.actions.write(
content = "#!/bin/bash\n{actual_pusher}\n".format(
actual_pusher = ctx.attr.image[DefaultInfo].files_to_run.executable.short_path,
actual_pusher = actual_pusher,
),
output = ctx.outputs.executable,
is_executable = True,
Expand Down

0 comments on commit 02f570f

Please sign in to comment.