We have a problem in our CI when we run jobs that use the same base image.
We are authenticating like this:
_, err = dag.Container().
WithEnvVariable("CACHE_BUSTER", time.Now().Format("20060102150405")).
WithRegistryAuth(harborRegistry, g.HarborUsername, g.HarborPassword).
Sync(ctx)
And then running our build like this:
func (m *MyModule) BuildBaseFpm() *dagger.Container {
return m.Source.
DockerBuild(dagger.DirectoryDockerBuildOpts{
Dockerfile: "fpm.Dockerfile",
Platform: "linux/amd64",
})
}
I we run a single job it works. As soon as we are running concurrent jobs they start failing with:
harbor.example.com/image/fpm:8.3-slim: failed to resolve source metadata for harbor.example.com/image/fpm:8.3-
slim: unexpected status from HEAD request to https://harbor.example.com/v2/image/fpm/manifests/8.3-slim: 401
Unauthorized
Does anyone has run into this issue also?
Dagger version: 0.19.10
The jobs share the same dagger engine