-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Unable to pass in a multiline string in build arg #91
Comments
@bob-bins I should allow something like JSON in |
What do you mean by "using an env var"? Do you mean hardcoding the value directly in the Dockerfile? If so I cannot do that as the value is a secret that I don't want checked into code. |
With |
Wouldn't
|
Not really as you don't have to run
|
Oh I see what you mean. Unfortunately I need this value at build time so injecting it at runtime will not work for me. I'll just keep a lookout for the fix to the |
@bob-bins Could you please try with branch support-json-for-extra-build-args?
You will have to use something like this:
|
Hey sorry for the late response!! For the
I attempted it again and it didn't work for me when I passed in an ssh key. It doesn't correctly convert it back to the correct format.
|
Closing as dup of #95 |
@bob-bins I don't know if you ever figured out your own solution to this, but I managed to get this working by encoding the mutli-line secret with
In the
I hope this gives other people an idea on how to handle this when searching for this issue. |
This config does not work:
build_extra_args: --build-arg some_arg="$multiline_string"
For
I get an error like:
However, this does work if I run the equivalent docker build command using the cli.
The text was updated successfully, but these errors were encountered: