-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Issue(docker-metadata): INPUT_TAGS with list value is not working #356
Comments
Hi @mbagsik00... Which version of the plugin are using? Can you share the configuration of the docker builder? and an example of the env variables that are you using? |
Hi @gperdomor, Plugin version docker builder configuration
Environment variable Tried without double quotes as well ( |
Sorry for the confusion, the problem is the same described here #350... You need to execute this
Also, if you only need to change the tag version, you can use something like this:
Then you can run The nx-docker also run a final interpolation before run the docker build command |
@gperdomor That one works! Thank you! Maybe we can update the documentation to say that we needed a new line. 😄 |
@mbagsik00 also, I have a new version of the plugin in alpha state The new docs. To try the new version you need to change your config to
Resume, rename |
a new troubleshooting section was added. I will close this issue now 😄 |
Hi @gperdomor,
We noticed an issue when we have a list of value for the
INPUT_TAGS
that it only use the last value instead of tagging it multiple times. Here's an example valueINPUT_TAGS="type=ref,event=branch,type=raw,value=v1.2.3"
and the docker image only get tagged withv1.2.3
. Although, adding multiple tags is working at the nx-docker executor.We did look into the code and we noticed a difference between the
getInputs
from the nx-dockercontext.ts
and docker-metadatacontext.ts
.nx-docker
context.ts
tags: await getInputList('tags', options.tags),
docker-metadata
context.ts
tags: getInputList('tags', options.tags, true).map((tag) => interpolate(tag)),
We tried to match it with the executor and test it by removing the parameter
true
which is theignoreComma
parameter ofgetInputList
and that fixes the issue. Not sure if there's a reason we want to ignore comma in the docker-metadata. According to the documentation, that is how we list values.Thanks! :)
The text was updated successfully, but these errors were encountered: