Merge branch fix-ci-deployment into main
This commit was merged in pull request #71.
This commit is contained in:
@@ -283,9 +283,9 @@ jobs:
|
||||
continue
|
||||
skip_net = False
|
||||
out.append(l)
|
||||
open('/tmp/prod-ci.yml','w').writelines(out)
|
||||
open('/nas-dashboard/prod-ci.yml','w').writelines(out)
|
||||
"
|
||||
docker compose -f /tmp/prod-ci.yml up -d --pull never 2>&1 || true
|
||||
docker compose -f /nas-dashboard/prod-ci.yml up -d --pull never 2>&1 || true
|
||||
fi
|
||||
|
||||
if ! docker container inspect nas-dashboard >/dev/null 2>&1; then
|
||||
@@ -299,6 +299,10 @@ jobs:
|
||||
docker run -d --name nas-dashboard \
|
||||
--restart unless-stopped \
|
||||
-p 127.0.0.1:4000:4000 \
|
||||
--health-cmd 'python -c "import urllib.request; urllib.request.urlopen(\"http://localhost:4000/api/health\")"' \
|
||||
--health-interval 30s \
|
||||
--health-timeout 5s \
|
||||
--health-retries 3 \
|
||||
-e DOCKER_HOST=tcp://docker-socket-proxy:2375 \
|
||||
-e GITEA_URL=http://gitea:3000 \
|
||||
-e GITEA_TOKEN=${GITEA_TOKEN} \
|
||||
|
||||
Reference in New Issue
Block a user