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
However, this step fails with a build error indicating that one of the required environment variables is missing.
Based on my limited knowledge of bash I've found that this may be the problem:
# Include environment variables in the build commandif [ -n"${INPUT_ENV}" ];then
IFS=','read -ra ENVS <<<"$INPUT_ENV"forenv_varin"${ENVS[@]}";do
BUILD_CMD="$BUILD_CMD --env $env_var"donefi
So the script expects the values to be passed as comma separated, whereas in YAML there's a standard way to create a list of strings separated by line breaks, and there's no such way for comma separated lists.
Or maybe I'm missing something out? What is the correct way to pass multiple environment variables to the build stage execution context?
The text was updated successfully, but these errors were encountered:
This seems like an obvious miss on my part, so I think there may have been a good reason for why I did it this way, but I can't remember what my past self was thinking off the top of my head. Thanks for the PR, going to look at this next week and merge or get to the bottom of my reasoning here.
Sure. Feel free to reject my PR and provide your own solution, since it's obvious that you know the shell scripting much better than I do.
What I've submitted is a minimal change that has allowed me to successfully deploy my own project. But it may break the deployment pipeline for anyone who relies on the old way.
I'm building Next.js app that requires all app's environment variables to be provided at the build stage:
However, this step fails with a build error indicating that one of the required environment variables is missing.
Based on my limited knowledge of bash I've found that this may be the problem:
So the script expects the values to be passed as comma separated, whereas in YAML there's a standard way to create a list of strings separated by line breaks, and there's no such way for comma separated lists.
Or maybe I'm missing something out? What is the correct way to pass multiple environment variables to the build stage execution context?
The text was updated successfully, but these errors were encountered: