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

custom release-in-Docker step ignored in subproject #264

Open
JLofgren opened this issue Apr 9, 2020 · 3 comments
Open

custom release-in-Docker step ignored in subproject #264

JLofgren opened this issue Apr 9, 2020 · 3 comments

Comments

@JLofgren
Copy link

JLofgren commented Apr 9, 2020

I have a multi-project build with a root project that aggregates all the sub-projects. In two of the subprojects I want to publish a docker image.

I have defined this custom release process at the root of build.sbt:

releaseProcess := Seq[ReleaseStep](
  checkSnapshotDependencies,
  inquireVersions,
  runTest,
  setReleaseVersion,
  commitReleaseVersion,
  tagRelease,
  releaseStepTask(publish in Docker),
  setNextVersion,
  commitNextVersion,
  pushChanges
)

However, when I try to release, when it gets to the custom releaseStepTask, it seems to be doing a plain publish rather than publish in Docker. My evidence is that the process is failing to authenticate to my Artifactory host rather my docker host. Also, my team has other single-project builds that are successfully using the above custom releaseProcess to publish to Docker.

Is there an obvious problem with how I am doing this? Or is this a bug/non-feature?

Other things I've tried include:

  • Defining the releaseProcess in each of the sub-project settings
  • Defining it in the root project settings
  • Defining it as ThisBuild / releaseProcess
@BoopBoopBeepBoop
Copy link

@JLofgren did you ever figure this out? I'm running into the exact same situation

@JLofgren
Copy link
Author

No, I gave up and split my project into separate repositories in order to work around this.

@Amos-85
Copy link

Amos-85 commented May 28, 2020

@BoopBoopBeepBoop / @JLofgren ,

if you use the release plugin in the global scope,
you need to declare the subproject like this:

releaseStepTask(publish in Docker in subproject1),
releaseStepTask(publish in Docker in subproject2)

this way it's worked for me.

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

No branches or pull requests

3 participants