-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: use project overarching vars #239
base: develop
Are you sure you want to change the base?
Conversation
vars
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BEAM_TAG
is missing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BEAM_TAG gets exported here https://github.com/samply/bridgehead/blob/develop/bridgehead#L90
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not too happy about having different places where the tags are set, but we can tackle that in the future as it touches the Environment
topic.
So I dont know about the future use cases of the top level |
you mean to rename the file or rename the variable names? |
bridgehead
Outdated
@@ -64,7 +64,7 @@ loadVars() { | |||
fetchVarsFromVaultByFile /etc/bridgehead/$PROJECT.conf || fail_and_report 1 "Unable to fetchVarsFromVaultByFile" | |||
setHostname | |||
optimizeBlazeMemoryUsage | |||
[ -e ./$PROJECT/vars ] && source ./$PROJECT/vars | |||
[ -e ./$PROJECT/vars ] && source ./$PROJECT/vars ./vars |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the source of ./vars should happen before the more specific project vars so that they can override the default and get set regardless of project vars existing or not
The file name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also we should not need the source versions
in each vars file as we source it before sourcing $PROJECT/vars
@@ -64,7 +64,7 @@ loadVars() { | |||
fetchVarsFromVaultByFile /etc/bridgehead/$PROJECT.conf || fail_and_report 1 "Unable to fetchVarsFromVaultByFile" | |||
setHostname | |||
optimizeBlazeMemoryUsage | |||
[ -e ./$PROJECT/vars ] && source ./$PROJECT/vars | |||
[ -e ./$PROJECT/vars ] && source ./versions ./$PROJECT/vars |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to bother you again I meant sourcing ./versions
regardless of ./$PROJECT/vars
existing. I think it always exits so it should not really matter but if we have the check that anyway
adapting changes from #221 proposal