Skip to content
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

[Feature request] envsubst: support passing -s multiple times #633

Open
michaelCTS opened this issue Sep 22, 2023 · 0 comments
Open

[Feature request] envsubst: support passing -s multiple times #633

michaelCTS opened this issue Sep 22, 2023 · 0 comments

Comments

@michaelCTS
Copy link

Affected builder image

gcr.io/cloud-builders-community/envsubst

Expected Behavior

When passing -s multiple times, only the last one is applied.

Actual Behavior

Accumulate the env vars to substitute and apply the substitution for them all.

Steps to Reproduce the Problem

mkdir /tmp/test123 && cd /tmp/test123
wget 'https://github.com/GoogleCloudPlatform/cloud-builders-community/raw/master/envsubst/entrypoint.bash'
echo '$A $B $C' > to_sub
export A=Hello
export B=World
export C=":)"
bash entrypoint.bash -s '$A' -s '$B' -s '$C' to_sub
cat to_sub

output: $A $B :)

Additional Info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant