Comments (4)
Have you tried
values: | image.tag: "${{ github.sha }}"When setting values for
helm
on the command line you'd use--set image.tag=$GITHUB_SHA
, maybe the same applies here too?
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
Run deliverybot/helm@v1
with:
helm: helm3
release: bookinfo-dev-ratings
namespace: student169-bookinfo-dev
chart: k8s/helm
value-files: k8s/helm-values/values-bookinfo-dev-ratings.yaml
values: extraEnv:
COMMIT_SHA: de44bcca7d9a046fc3a625cbbc1006b949408b68
env:
ENV_NAME: dev
KUBECONFIG: /home/runner/work/bookinfo-ratings/bookinfo-ratings/2f4bf7f5-da00-4f07-a59e-d7f69bbeb0a2
from helm.
@polRk what error are you seeing when you try this?
from helm.
Have you tried
values: |
image.tag: "${{ github.sha }}"
When setting values for helm
on the command line you'd use --set image.tag=$GITHUB_SHA
, maybe the same applies here too?
from helm.
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).
from helm.
Related Issues (20)
- Add helmfile HOT 1
- Issue while downloading the chart by passing the full URL. HOT 6
- Deploying to EKS, need credentials passed HOT 8
- Howto reuse values? HOT 4
- [Error] Error: unknown flag: --home HOT 2
- update repos? HOT 3
- Unexpected input 'helm'
- deliverybot/[email protected] breaks CI HOT 4
- Add --create-namespace flag HOT 8
- Warning for missing input parameters
- Add --debug flag HOT 1
- Unexpected input(s) 'timeout' HOT 1
- Add reuse-values as possible argument to the helm upgrade action
- Image build fails because of Helm having removed the stable repo HOT 7
- No module 'awscli' when deploying to EKS HOT 4
- How can I use multiple KUBECONFIG_FILE? - Works with auto_deploy_on, fails with manual deploy
- helm chart base dir
- Image build fails HOT 7
- Image Build Fails HOT 4
- provide an option to provide --insecure-skip-tls-verify flag HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm.