ci: configure CD workflow to deploy to remote Docker host and document test environment
CD / deploy (push) Failing after 15s
CI / test (push) Successful in 1m33s
CI / docker (push) Canceled after 0s
CI / release (push) Canceled after 0s

This commit is contained in:
zwitschi committed 2026-08-03 19:57:58 +02:00
1 parent 8fd80c1a4c
commit 78508ed16e
2 files changed
+74 -2

No files matched your search

+6 -2
View File
@@ -41,6 +41,8 @@ jobs:
EOF
- name: Deploy with docker-compose
env:
DOCKER_HOST: tcp://192.168.88.40:2375
run: |
docker compose -f docker-compose.prod.yml pull
docker compose -f docker-compose.prod.yml up -d --remove-orphans
@@ -48,9 +50,11 @@ jobs:
- name: Health check
run: |
sleep 10
curl -f http://localhost:3000/health || exit 1
curl -f http://localhost:8081/health || exit 1
curl -f http://192.168.88.40:3000/health || exit 1
curl -f http://192.168.88.40:8081/health || exit 1
- name: Cleanup old images
env:
DOCKER_HOST: tcp://192.168.88.40:2375
run: |
docker image prune -f --filter "until=24h"