Update git server FQDN
This commit is contained in:
parent
25f9c932f8
commit
2d6a523f38
4 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@ RUN curl -X "GET" -H "Authorization: token $(cat /archive-token.txt)" "$WEBSITE_
|
||||||
WORKDIR /$WEBSITE_ARCHIVE_FOLDER
|
WORKDIR /$WEBSITE_ARCHIVE_FOLDER
|
||||||
RUN zola build ; rm public/404.html
|
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
|
FROM caddy:2
|
||||||
ARG WEBSITE_ARCHIVE_FOLDER
|
ARG WEBSITE_ARCHIVE_FOLDER
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
docker build --no-cache --pull -t jotoho/www.hopusch.de:latest \
|
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_ARCHIVE_FOLDER="kanzleiseite" \
|
||||||
--build-arg WEBSITE_HOST="www.hopusch.de" \
|
--build-arg WEBSITE_HOST="www.hopusch.de" \
|
||||||
.
|
.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
docker build --no-cache --pull -t jotoho/www.jotoho.de:latest \
|
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_ARCHIVE_FOLDER="my-website" \
|
||||||
--build-arg WEBSITE_HOST="www.jotoho.de" \
|
--build-arg WEBSITE_HOST="www.jotoho.de" \
|
||||||
.
|
.
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
failcount=0
|
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
|
if [ "$failcount" -gt 300 ]; then
|
||||||
echo "Gitea timeout. Exiting!"
|
echo "Gitea timeout. Exiting!"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue