sbt / sbt-native-packager

sbt Native Packager
https://sbt-native-packager.readthedocs.io/en/stable/
BSD 2-Clause "Simplified" License
1.6k stars 441 forks source link

Image not tagged, publish fails #1462

Closed autodidacticon closed 3 years ago

autodidacticon commented 3 years ago

Expected behaviour

sbt publish pushes docker image to remote repository

Actual behaviour

sbt publishLocal is not tagging the image

Information

from sbt console:

[error] #20 exporting layers 0.5s done
[error] #20 writing image sha256:447eb0618400bcae91d11bcc2509a622a2c96a612814ba3b87976679585338e1 done
[error] #20 DONE 0.5s
[error] Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[info] Removing intermediate image(s) (labeled "snp-multi-stage-id=02eef4c7-c45e-4ab3-9f73-9ddc37317769") 
[info] Total reclaimed space: 0B
[info] Built image my.remote.repo/my-name with tags [my-project-0.1-SNAPSHOT]

from terminal:

docker images             
REPOSITORY   TAG       IMAGE ID       CREATED          SIZE
<none>       <none>    447eb0618400   6 minutes ago    564MB
autodidacticon commented 3 years ago

FWIW, this issue seems to go away with 1.9.1.

autodidacticon commented 3 years ago

nvm, this is user error:

dockerBuildOptions := Seq( "--no-cache", "--pull" )