Skip to content

Commit dbd5ee8

Browse files
author
Andreas Kasprzok
authored
Bugfix: tags not being pushed correctly (#170)
* Bugfix: tags not being pushed correctly * let's try this * aaaaaaahhhh
1 parent 43a1524 commit dbd5ee8

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

dist/image_push/index.js

Lines changed: 3 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/image_push.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@ const run = async (): Promise<void> => {
2525
dockerfile
2626
]
2727

28-
if (imageTag) {
29-
imageTags.push(imageTag)
30-
}
28+
const tags = imageTag.length > 0 ? [imageTag] : imageTags
3129

32-
args.concat(imageTags.flatMap(tag => [`--image-tag`, tag]))
30+
const args_with_tags = args.concat(tags.flatMap(tag => [`--image-tag`, tag]))
3331

34-
await exec.exec(command, args)
32+
await exec.exec(command, args_with_tags)
3533
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3634
} catch (error: any) {
3735
core.setFailed(error.message)

0 commit comments

Comments
 (0)