version id, 2
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2024-02-01 09:55:40 +01:00
parent 4dbc156439
commit 85afd501ce
2 changed files with 3 additions and 3 deletions

View File

@ -12,8 +12,8 @@ WORKDIR ${APP_DIR}
RUN \
apk add --no-cache build-base libpq-dev && \
pip install -r requirements.txt && \
sed -i -e 's/VERSION_ID1/'$VERSION_ID1'/' ${APP_DIR}/templates/index.html && \
sed -i -e 's/VERSION_ID2/'$VERSION_ID2'/' ${APP_DIR}/templates/index.html
if [ "${VERSION_ID2}" != "" ]; then VERSION_ID=${VERSION_ID2}; else VERSION_ID=${VERSION_ID1}; fi && \
sed -i -e 's/VERSION_ID/'$VERSION_ID'/' ${APP_DIR}/templates/index.html
EXPOSE 8080

View File

@ -177,7 +177,7 @@ function updateTotalNutrition() {
<nav id="navbar">
<h1>Elo's Rezept Rechner</h1>
<ul>
<li class="versionid">VERSION_ID1 - VERSION_ID2</li>
<li class="versionid">VERSION_ID</li>
<li><a href="/" class="active">Rechner</a></li>
<li><a href="/nutrition">Neue Lebensmittel</a></li>
</ul>