.
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Giles Bradshaw 2020-04-30 20:25:24 +01:00
parent 3eee39b62a
commit 33606e1f66
3 changed files with 24 additions and 0 deletions

View File

@ -1,4 +1,5 @@
FROM gitea/gitea:latest FROM gitea/gitea:latest
COPY app.ini /init/ COPY app.ini /init/
COPY ./templates /init/templates
COPY run.sh / COPY run.sh /
CMD ["sh", "/run.sh"] CMD ["sh", "/run.sh"]

View File

@ -1,2 +1,8 @@
envsubst < /init/app.ini > /data/gitea/conf/app.ini envsubst < /init/app.ini > /data/gitea/conf/app.ini
for file in /init/templates
do
envsubst < "/init/templates/$file" > "/data/gitea/templates/$file"
done
/bin/s6-svscan /etc/s6 /bin/s6-svscan /etc/s6

17
gitea/templates/home.tmpl Normal file
View File

@ -0,0 +1,17 @@
{{template "base/head" .}}
<div class="home">
<div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column">
<div>
<img class="logo" src="{{StaticUrlPrefix}}/img/gitea-lg.png" />
</div>
<div class="hero">
<h1 class="ui icon header title">
{{AppName}}
</h1>
<h2>${DESCRIPTION}</h2>
</div>
</div>
</div>
</div>
{{template "base/footer" .}}