-
Notifications
You must be signed in to change notification settings - Fork 362
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
Setting registryCredentials for DockerPushImage
does not work
#1216
Comments
If you are dealing with just a single registry then you do not need to use
My guess is that your container image name doesn't contain the registry domain, e.g. |
I am having a similar problem on Gradle 8,6 when trying to push an image, in that I am unable to set the the registry to anything other than dockerhub. I have configured the docker closure as follows; docker { when I try to use the dockerPushImage task it returns the following; Pushing image 'myrepo/alertengine:0.1' to https://index.docker.io/v1/ I have also tried to add the closure to an extension task as follows; tasks.create("pushAlertDocker") { Same result, it still attempts to point to the docker.io repository. |
Works for me btw, I am using this and it does the job:
|
When running
dockerPushImage
or a custom task such asthe plugin will not use the provided url and fails with
Expected Behavior
it should use the provided url
Current Behavior
its using the default url
Context
gradle 8.2.1
all 3 print statements print;
https://123.dkr.ecr.us-east-1.amazonaws.com/repository
however, it still uses the default configuration
Dockerfile
andDockerBuildImage
tasks work fine in the same buildive also tried
and
The text was updated successfully, but these errors were encountered: