#Build dockerfiles with FROM <private_ECR_repository>
1 messages · Page 1 of 1 (latest)
MB you need to add WithRegistryAuth before calling DockerBuild
🤦♂️ I didn't even see that option on *dagger.Directory, thanks
Oh it's not an option? https://pkg.go.dev/dagger.io/dagger#Directory
Edited the original message, this is a case of Directory.Dockerbuild
Oh! If you are using a Directory directly you can. Call dag.Container().WithRegistryAuth(...).Sync(ctx) somewhere in your pipeline before DockerBuild
That will Authenticate your whole Dagger session towards that registry. I think that will work
Well that would be nice, I could shift it to the Aws method. I'll try that now
Forgot to come back to this, that's worked. I didn't know a call to .WithRegistryAuth authed that whole session, thought it was just that container