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
Trying to use valid json string as environment variables/docker build args does not work as expected
Description
The current code for passing Docker build arguments incorrectly handles JSON string values by enclosing them in double quotes, resulting in improperly formatted arguments.
To address this, we need to modify the code to handle JSON strings separately.
Proposed solution
For non-JSON strings, enclose in double quotes as before.
For valid JSON strings, parse with JSON.parse(), stringify with JSON.stringify(), and enclose in single quotes.
Issue
Trying to use valid json string as environment variables/docker build args does not work as expected
Description
The current code for passing Docker build arguments incorrectly handles JSON string values by enclosing them in double quotes, resulting in improperly formatted arguments.
To address this, we need to modify the code to handle JSON strings separately.
Proposed solution
The text was updated successfully, but these errors were encountered: