Automation: Pulling from an external private registry for a container build step

We'd like to pull an image from a private docker registry on a different provider as part of a build step in Space. Is authenticating to an external registry for container steps currently supported?

One alternative is running a container step with image=docker and pulling / building manually, but that's a workaround we'd like to avoid if we could. 

3 comments
Comment actions Permalink

Carlo Field, could you please be more specific about your use case? In general, yes, it's possible. For example, if we're talking about the Docker build, you can use beforeBuildScript to authenticate in a 3rd party registry.

0
Comment actions Permalink

We have multiple container steps. We would like to base those container steps on an image in a private registry. So for instance:

job("Test") {
  container(image = "my.registry.com/test/image:1234") {
    shellScript { content = """ ./gradlew build cp -r build $mountDir/share """ }
  }
}

How do we authenticate to an arbitrary private registry?

0
Comment actions Permalink

Carlo Field oh, thanks for clarifying! This scenario is not supported yet. As far as I can see, you've already found a corresponding issue in our tracker, so please stay tuned for the updates: https://youtrack.jetbrains.com/issue/SPACE-9234

0

Please sign in to leave a comment.