File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ def _container_bundle_impl(ctx):
81
81
files = depset (),
82
82
runfiles = ctx .runfiles (files = (stamp_files + runfiles )),
83
83
),
84
+ OutputGroupInfo (
85
+ tar = depset ([attr .outputs .tar_output ]),
86
+ ),
84
87
]
85
88
86
89
container_bundle_ = rule (
@@ -93,11 +96,9 @@ container_bundle_ = rule(
93
96
default = False ,
94
97
mandatory = False ,
95
98
),
99
+ "tar_output" : attr .output (),
96
100
}, _layer_tools ),
97
101
executable = True ,
98
- outputs = {
99
- "out" : "%{name}.tar" ,
100
- },
101
102
toolchains = ["@io_bazel_rules_docker//toolchains/docker:toolchain_type" ],
102
103
implementation = _container_bundle_impl ,
103
104
)
@@ -128,4 +129,7 @@ def container_bundle(**kwargs):
128
129
kwargs ["image_targets" ] = values
129
130
kwargs ["image_target_strings" ] = values
130
131
132
+ name = kwargs ["name" ]
133
+ tar_output = kwargs .pop ("tar_output" , name + ".tar" )
134
+ kwargs ["tar_output" ] = tar_output
131
135
container_bundle_ (** kwargs )
You can’t perform that action at this time.
0 commit comments