fix for OAUTH_ENABLED check #17
Dismiss Review
Are you sure you want to dismiss this review?
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
appletalk
arjan
basebuilder
BornDeleuze
Brooke
carla
cas (Cassowary)
codegod100
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
flancian
Frando
iexos
jade (Jade Ambrose)
javielico (Javielico)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
marlon (marlon)
mayel
mirsal
moosemower
moritz
nicksellen (Nick Sellen)
notplants
oxaliq (sorrel)
p4u1
pau
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
PhiNatalie
renovate-bot (Comrade Renovate Bot)
ripclap
rix
rscmbbng
sef (sef)
simon
sixsmith (Sixsmith)
stevensting
tobias
trav (Trav Fryer)
val (val (he/him))
vaznasty
virtualboys
wolcen (Chris Thompson)
wykwit
xynosis
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/loomio#17
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
@@ -29,3 +29,1 @@{{ if eq (env "OAUTH_ENABLED") "1" }}file_env "OAUTH_APP_SECRET"{{ end }}if [ "$OAUTH_ENABLED" = "1" ]; thenIs there a reason you're not templating it? I would assume it would be better to stick to convention?
E.g.
The
.tmplin https://git.coopcloud.tech/coop-cloud/peertube/src/branch/main/entrypoint.sh.tmplAnother one of our weird recipe-isms 😂
Is this as simple as changing the file name to be end with .tmpl btw? @decentral1se
No reason, I was just working off of whatever was already there in the loomio recipe and didn't realize the convention is to have a .tmpl file for the entrypoint.
What are the benefits of it being a .tmpl file? Would you be ok with updating to .tmpl format in a separate change?
@ammaratef45 @jmakdah2 The advantage of the
.tmplfile is that you can inject values into it via the template engine (e.g. the{{ if eq (env "OAUTH_ENABLED") "1" }}syntax works). The.tmplfile naming is just convention also, the main thing required is thecompose.ymlsnippet i shared in #17 (comment) where you specify thetemplate_driver. It's ultimately up to y'all. I also have no strong feelings on how changes are done in this PR or whatever, up to you!thanks @decentral1se, I agree would be better to stick to convention, but it doesn't feel like this is impacting us much now so I can look into updating it with another change or separately after this PR!