Join Slack
Powered by
Might be a dumb question, but anyone knows why we ...
# seed
l
Luca Demmel
11/26/2021, 3:23 PM
Might be a dumb question, but anyone knows why we can’t set a new env during before_build hook on a seed build?
f
Frank
11/26/2021, 3:32 PM
Hey
@Luca Demmel
, try this
https://seed.run/docs/adding-a-build-spec.html#custom-build-environment-variables
Frank
11/26/2021, 3:33 PM
Each command runs in its own shell, so environment variables don’t persist across commands by default.
Frank
11/26/2021, 3:34 PM
Copy code
before_build: - echo 'export TEST_ENV_VAR=123' >> $BASH_ENV - echo $TEST_ENV_VAR
l
Luca Demmel
11/26/2021, 3:52 PM
Perfect, gr8
Luca Demmel
11/26/2021, 3:52 PM
Thank you
4
Views
Open in Slack
Previous
Next