Skip to content

Commit ce6e465

Browse files
committed
reusable workflow for bake
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent 5742944 commit ce6e465

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/bake.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,13 @@ jobs:
222222
if (bakeFiles.length === 0) {
223223
bakeFiles = ['docker-bake.hcl'];
224224
}
225-
bakeFiles.push(`cwd://${inpBakeFileTags}`);
226-
if (inpSetMetaAnnotations) {
225+
if (inpBakeFileTags) {
226+
bakeFiles.push(`cwd://${inpBakeFileTags}`);
227+
}
228+
if (inpSetMetaAnnotations && inpBakeFileAnnotations) {
227229
bakeFiles.push(`cwd://${inpBakeFileAnnotations}`);
228230
}
229-
if (inpSetMetaLabels) {
231+
if (inpSetMetaLabels && inpBakeFileLabels) {
230232
bakeFiles.push(`cwd://${inpBakeFileLabels}`);
231233
}
232234
core.info(JSON.stringify(bakeFiles, null, 2));

0 commit comments

Comments
 (0)