This commit is contained in:
qiaofeng1227 2024-02-29 12:59:35 +08:00
parent 4e0b9c6e8d
commit e3f9a5d0c0
3 changed files with 4 additions and 9 deletions

View file

@ -1,4 +1,4 @@
# modify time: 202402290820, you can modify here to trigger Docker Build action
# modify time: 202402291259, you can modify here to trigger Docker Build action
# Dockerfile refer to: https://github.com/go-gitea/gitea/blob/main/Dockerfile
FROM gitea/gitea:1.20.4

View file

@ -1,9 +1,3 @@
#!/bin/bash
cred_path="/data/gitea/credential"
if [ -e "$cred_path" ]; then
echo "File $cred_path exists. disable /etc/s6/user"
exit 125
else
exit 0
fi
exit 125

View file

@ -10,13 +10,14 @@ admin_username="websoft9"
admin_email="admin@mydomain.com"
while [ "$response" != "200" ]; do
sleep 3
response=$(curl -s -o /dev/null -w "%{http_code}" localhost:3000)
if [ "$response" = "200" ]; then
echo "gitea is runing"
break
fi
count=$((count+1))
if [ $count -gt 10 ]; then
if [ $count -gt 60 ]; then
echo "gitea is not runing"
break
fi