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
The s2i build workflow supports setting environment variables:
$ s2i build --help |grep env
-e, --env string Specify an single environment variable in NAME=VALUE format
-E, --environment-file string Specify the path to the file with environment
I tried it with the array type and there was an issue related to tekton, so i've given it go using a comma-separated string which will then be looped over and used, PTAL, since this was needed for s2i-dotnet, i have clubed both of them together, and you can take a look at the PR: #35
The
s2i
build workflow supports setting environment variables:S2I Tasks rendered by this project should leverage the setting, like for instance on task-buildpacks repository
ENV_VARS
param.A practical approach is receiving the params via STDIN and loop over the key-value pairs:
Then, on
s2i-generate.sh
script can loop over the arguments to store on a file, for instance:The set of key-value should be stored on a temporary location (
/s2i-generate/s2i.env
?), informed tos2i
using--environment-file
flag.The text was updated successfully, but these errors were encountered: