#Login to multiple ECR repos

1 messages · Page 1 of 1 (latest)

regal vortex
#

Hello dagger team!
Again thanks for this beautiful tool, we are using it a lot.

I'm having a hard time solving this situation:

  • base image for container is in ecr private repo A
  • dagger generated image needs to be published in private repo B

When i use .with_registry_auth it seems to work only for the first added auth.

Im using python sdk v0.6.4

Thanks in advance

rapid fractal
#

👋 you need to call WithRegistryAuth for each registry in this case

#

so. container.WithRegistryAuth(A).From("A image").WithRegistryAuth("B").Publish("B image")

regal vortex
#

Thanks marcos for the answer

#

i read CAREFULLY and it worked just like you said