Compare commits
2 Commits
0e4f3434a3
...
agung
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c985008d1 | ||
|
|
1281ce2504 |
@@ -198,14 +198,15 @@ jobs:
|
||||
echo "Starting new container..."
|
||||
docker run -d \
|
||||
--restart unless-stopped \
|
||||
--health-cmd="curl -f http://localhost:8000 || exit 1" \
|
||||
--health-cmd="pgrep php-fpm" \
|
||||
--health-interval=30s \
|
||||
--health-timeout=10s \
|
||||
--health-start-period=40s \
|
||||
--health-retries=3 \
|
||||
--name kulakpos_web_prod \
|
||||
--network="host" \
|
||||
-v /opt/kulakpos/.env:/var/www/html/.env \
|
||||
-p 8000:8000 \
|
||||
-p 9000:9000 \
|
||||
-e MODE=prod \
|
||||
-e APP_ENV=production \
|
||||
kode.sadateknologi.site/${{ gitea.repository_owner }}/kulakpos_web:$IMAGE_TAG
|
||||
@@ -239,11 +240,16 @@ jobs:
|
||||
fi
|
||||
EOF
|
||||
|
||||
# - name: Verify Production Deployment
|
||||
# run: |
|
||||
# ssh kulakpos_prod "curl -f http://localhost:8000/health || curl -f http://localhost:8000 || echo 'Service is running but health check endpoint not configured'"
|
||||
# echo "✅ Production deployment verified!"
|
||||
|
||||
- name: Verify Production Deployment
|
||||
run: |
|
||||
ssh kulakpos_prod "curl -f http://localhost:8000/health || curl -f http://localhost:8000 || echo 'Service is running but health check endpoint not configured'"
|
||||
ssh kulakpos_prod "docker ps --filter 'name=kulakpos_web_prod' --format '{{.Status}}' | grep -q healthy"
|
||||
echo "✅ Production deployment verified!"
|
||||
|
||||
|
||||
- name: Send Deployment Notification
|
||||
if: always()
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user