Open zarthross opened 10 hours ago
Hi @zarthross,
Thank you for your contribution! We really value the time you've taken to put this together.
We see that you have signed the Akka Contributors License Agreement before, however, the CLA has changed since you last signed it. Please review the new CLA and sign it before we proceed with reviewing this pull request:
The CLA signer process is broken... I cannot sign it... not sure what ya'll want to do about it.
This is basically a 1 line fix, i do not care about the CLA, i do not care about copy right to the code, just wanted others to have the fix.....
The CLA bot has an insecure http: URL... This link should work: https://www.lightbend.com/contribute/cla
Multi-platform builds append a
-t
argument for each alias to thedockerBuildOptions
, but thepublishTask
function was ALWAYS iterating over the aliases even if it was a multi-platform build.https://github.com/sbt/sbt-native-packager/blob/7c6885910c382784bcd2cd9fc63c2794a9dbd0a2/src/main/scala/com/typesafe/sbt/packager/docker/DockerPlugin.scala#L157-L159
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.
Note: using
dockerUpdateLatest := true
counts as having multiple aliases, which is how I encountered this bug.