Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repository for publishing is not specified. #168

Open
iamsmkr opened this issue May 31, 2020 · 2 comments
Open

Repository for publishing is not specified. #168

iamsmkr opened this issue May 31, 2020 · 2 comments

Comments

@iamsmkr
Copy link

iamsmkr commented May 31, 2020

This is regarding the shopping-cart-scala app.

I get the following error when I try to publish the docker images to docker hub:

[error] java.lang.RuntimeException: Repository for publishing is not specified.
[error] 	at scala.sys.package$.error(package.scala:26)
[error] 	at sbt.Classpaths$.$anonfun$getPublishTo$1(Defaults.scala:2644)
[error] 	at scala.Option.getOrElse(Option.scala:121)
[error] 	at sbt.Classpaths$.getPublishTo(Defaults.scala:2644)
[error] 	at sbt.Classpaths$.$anonfun$ivyBaseSettings$48(Defaults.scala:2089)
[error] 	at scala.Function1.$anonfun$compose$1(Function1.scala:44)

I pass docker username and respository as an argument to sbt like so:

sbt -Ddocker.username=codingkapoor -Ddocker.registry=index.docker.io

Images do get pushed but I still the error when I try to publish docker:publish.

Please suggest. TIA.

@octonato
Copy link
Member

octonato commented Jun 5, 2020

@octonato octonato removed the triage label Jun 5, 2020
@iamsmkr
Copy link
Author

iamsmkr commented Jun 5, 2020

Yes. @renatocaval

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants