You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As seen in the example [dockerfile-base-as-arg|https://github.com/fabric8io/docker-maven-plugin/blob/master/it/dockerfile-base-as-arg/src/main/docker/Dockerfile] we tried to parametrize our docker-builds, the docker:build works fine, but the following docker:push crashes with:
[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.44.0:push (default-cli) on project xxx: Execution default-cli of goal io.fabric8:docker-maven-plugin:0.44.0:push failed: Given Docker name '${baseImage}' is invalid:
[ERROR] * image part '${baseImage}' doesn't match allowed pattern '[a-z0-9]+(?:(?:(?:[.]|__|[-]*)[a-z0-9]+)+)?(?:(?:/[a-z0-9]+(?:(?:(?:[.]|__|[-]*)[a-z0-9]+)+)?)+)?'
Thank you for the quick reply. I have tried 0.45-SNAPSHOT, but it is the same error message. It seems to be the same environment as #1756, however the docker:build is successful, only the docker:push fails. As an addition, the ARG is set with a property "docker.buildArg.baseImage". The ARG section in the BUILD has been removed.
I have added our configuration and the simplified Dockerfile in the tickettext.
Activity
rohanKanojia commentedon Apr 12, 2024
Do you think this is duplicate of #1756 ? Could you please check via SNAPSHOT build if it's working as expected?
ChristianKnof commentedon Apr 12, 2024
Thank you for the quick reply. I have tried 0.45-SNAPSHOT, but it is the same error message. It seems to be the same environment as #1756, however the docker:build is successful, only the docker:push fails. As an addition, the ARG is set with a property "docker.buildArg.baseImage". The ARG section in the BUILD has been removed.
I have added our configuration and the simplified Dockerfile in the tickettext.
rohanKanojia commentedon Apr 13, 2024
@ChristianKnof : Thanks for reporting! I can reproduce the issue.
nodece commentedon Apr 29, 2024
Any updates?
rohanKanojia commentedon Apr 29, 2024
@nodece : Let me provide a fix this week.