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

[IMP] Add env var expansion for repo.yml #5

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Here you will put the actual source code for your project.
When putting code here, you can either:

- Use [`repos.yaml`][], that will fill anything at build time.
- This file will be environment variable expanded before use.
- Directly copy all there.

Recommendation: use [`repos.yaml`][] for everything except for [`private`][],
Expand Down
1 change: 1 addition & 0 deletions build.d/20-repos-aggregate
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ conf=/opt/odoo/custom/src/repos.yaml
if [ -f $conf ]; then
log INFO Aggregating repositories from $conf
cd $(dirname $conf)
echo $(eval echo $(cat $conf)) > $conf
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better use envsubst, like with conf files.

gitaggregate -c $conf
else
log ERROR Cannot aggregate repositories: $conf not found
Expand Down