ci: configure CD workflow to deploy to remote Docker host and document test environment
This commit is contained in:
1 parent
8fd80c1a4c
commit
78508ed16e
2 files changed
+74
-2
No files matched your search
@@ -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"
|
||||
Reference in new issue
Block a user