-
Notifications
You must be signed in to change notification settings - Fork 221
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
How can i use nesting values ? #16
Comments
@polRk what error are you seeing when you try this? |
Have you tried values: |
image.tag: "${{ github.sha }}" When setting values for |
I tried it and it is not working. fortunately, I found the way by putting it in JSON format instead of YAML. values: |
{
"image": {
"tag": "${{ github.sha }}"
}
} But it will be better if we can it to support YAML nested format. This is my guest. The root cause of the problem comes from when you using this values: |
image:
tag: "${{ github.sha }}" It will remove space indent on the second line, so content in values.yml will look like this image:
tag: "abcdefg" See my debug value to test this scenario here https://github.com/winggundamth/bookinfo-ratings/runs/2468832416. You will see the following to confirm my assumption that the space indent has been removed
|
Ah yes, the infamous multiline strings in YAML. Whenever I have to deal with this I head over to https://yaml-multiline.info/. But it looks like you are right and there is no way of keeping the indentation intact. Your solution is probably the only way to make this work. Thankfully YAML and JSON are compatible since YAML is a superset of JSON. This is explained in detail in this StackOverflow question (and answer). |
It doesn't work
The text was updated successfully, but these errors were encountered: