Compare commits

..

No commits in common. "2b54fdbce511298af624493f4060f8c21218c4bf" and "c3044418ba5eb346c41f62637360a32dcf69a731" have entirely different histories.

5 changed files with 1 additions and 13 deletions

View file

@ -12,10 +12,6 @@ trigger:
- pull_request - pull_request
steps: steps:
- name: commit hash magic
image: bitnami/git:2.33.0
commands:
- git show -s --format=%H | tee hash
- name: kaniko - name: kaniko
image: plugins/kaniko image: plugins/kaniko
settings: settings:

1
.gitignore vendored
View file

@ -1,3 +1,2 @@
.vscode/ .vscode/
dist/ dist/
hash

View file

@ -9,7 +9,6 @@ RUN pip install pipenv && pipenv install --system
COPY app.py /app/app.py COPY app.py /app/app.py
COPY templates/ /app/templates COPY templates/ /app/templates
COPY data/ /app/data COPY data/ /app/data
COPY hash /app/hash
RUN python ./app.py RUN python ./app.py

7
app.py
View file

@ -26,16 +26,11 @@ update = date.today()
tijden = render("tijden.md") tijden = render("tijden.md")
nieuws = render("nieuws.md") nieuws = render("nieuws.md")
def read_hash():
with open("hash") as f:
line = f.readline()
return {"long": line, "short": line[0:7]}
inject_now = {'now': date.today().year, inject_now = {'now': date.today().year,
'tijden': tijden, 'tijden': tijden,
'nieuws': nieuws, 'nieuws': nieuws,
'update': update, 'update': update}
'hash': read_hash()}

View file

@ -54,7 +54,6 @@
<hr style="height: 2px;"/> <hr style="height: 2px;"/>
<p style="margin-top: 16px; height: 40px;">Laatste <p style="margin-top: 16px; height: 40px;">Laatste
update: {{ update }}<br/> update: {{ update }}<br/>
<a href="https://git.voidcorp.nl/j00lz/galerie-site/commit/{{hash.long}}">Build {{hash.short}}</a><br>
Webmaster: <a href="mailto:webmaster@galerievanslagmaat.nl?SUBJECT=Website Galerie van Slagmaat">Julius de Webmaster: <a href="mailto:webmaster@galerievanslagmaat.nl?SUBJECT=Website Galerie van Slagmaat">Julius de
Jeu</a> Jeu</a>