1
0
Fork 0

Update git server FQDN

This commit is contained in:
Jonas Tobias Hopusch 2024-06-05 17:08:21 +02:00
parent 25f9c932f8
commit 2d6a523f38
Signed by: jotoho
GPG key ID: 913BDF1196DCF600
4 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@ RUN curl -X "GET" -H "Authorization: token $(cat /archive-token.txt)" "$WEBSITE_
WORKDIR /$WEBSITE_ARCHIVE_FOLDER
RUN zola build ; rm public/404.html
RUN wget -O /tmp/Caddyfile "https://gitea.jotoho.de/jotoho/site-deployer/raw/branch/master/$WEBSITE_HOST/Caddyfile" >/dev/null 2>&1
RUN wget -O /tmp/Caddyfile "https://git.jotoho.de/jotoho/site-deployer/raw/branch/master/$WEBSITE_HOST/Caddyfile" >/dev/null 2>&1
FROM caddy:2
ARG WEBSITE_ARCHIVE_FOLDER

View file

@ -1,7 +1,7 @@
#!/bin/sh
docker build --no-cache --pull -t jotoho/www.hopusch.de:latest \
--build-arg WEBSITE_ARCHIVE_URL="https://gitea.jotoho.de/api/v1/repos/jotoho/kanzleiseite/archive/master.tar.gz" \
--build-arg WEBSITE_ARCHIVE_URL="https://git.jotoho.de/api/v1/repos/jotoho/kanzleiseite/archive/master.tar.gz" \
--build-arg WEBSITE_ARCHIVE_FOLDER="kanzleiseite" \
--build-arg WEBSITE_HOST="www.hopusch.de" \
.

View file

@ -1,7 +1,7 @@
#!/bin/sh
docker build --no-cache --pull -t jotoho/www.jotoho.de:latest \
--build-arg WEBSITE_ARCHIVE_URL="https://gitea.jotoho.de/api/v1/repos/jotoho/my-website/archive/master.tar.gz" \
--build-arg WEBSITE_ARCHIVE_URL="https://git.jotoho.de/api/v1/repos/jotoho/my-website/archive/master.tar.gz" \
--build-arg WEBSITE_ARCHIVE_FOLDER="my-website" \
--build-arg WEBSITE_HOST="www.jotoho.de" \
.

View file

@ -2,7 +2,7 @@
set -eu
failcount=0
until curl -X "GET" 'https://gitea.jotoho.de/api/v1/version' >/dev/null 2>&1; do
until curl -X "GET" 'https://git.jotoho.de/api/v1/version' >/dev/null 2>&1; do
if [ "$failcount" -gt 300 ]; then
echo "Gitea timeout. Exiting!"
exit 1