Commit c882ac2
authored
Fix multi-platform builds with multiple aliases. (#1651)
Multi-platform builds append a `-t` argument for each alias to the
`dockerBuildOptions`, but the `publishTask` function was ALWAYS
iterating over the aliases even if it was a multi-platform build.
The consequence was attempts to buildx and push the tags multiple times.
In some environments this leads to build failures because you can't push
the same tag twice.
This change simply does not iterate over the aliases for multiplatform builds.1 parent e56794d commit c882ac2
File tree
1 file changed
+6
-3
lines changed- src/main/scala/com/typesafe/sbt/packager/docker
1 file changed
+6
-3
lines changedLines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
304 | | - | |
305 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
306 | 309 | | |
307 | 310 | | |
308 | 311 | | |
| |||
0 commit comments