Merge remote-tracking branch 'origin/main' into agung
Some checks failed
Build, Push and Deploy / build-and-push (push) Successful in 2m32s
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 8s
Build, Push and Deploy / deploy-staging (push) Successful in 29s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
Some checks failed
Build, Push and Deploy / build-and-push (push) Successful in 2m32s
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 8s
Build, Push and Deploy / deploy-staging (push) Successful in 29s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
This commit is contained in:
@@ -198,14 +198,15 @@ jobs:
|
|||||||
echo "Starting new container..."
|
echo "Starting new container..."
|
||||||
docker run -d \
|
docker run -d \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
--health-cmd="curl -f http://localhost:8000 || exit 1" \
|
--health-cmd="pgrep php-fpm" \
|
||||||
--health-interval=30s \
|
--health-interval=30s \
|
||||||
--health-timeout=10s \
|
--health-timeout=10s \
|
||||||
|
--health-start-period=40s \
|
||||||
--health-retries=3 \
|
--health-retries=3 \
|
||||||
--name kulakpos_web_prod \
|
--name kulakpos_web_prod \
|
||||||
--network="host" \
|
--network="host" \
|
||||||
-v /opt/kulakpos/.env:/var/www/html/.env \
|
-v /opt/kulakpos/.env:/var/www/html/.env \
|
||||||
-p 8000:8000 \
|
-p 9000:9000 \
|
||||||
-e MODE=prod \
|
-e MODE=prod \
|
||||||
-e APP_ENV=production \
|
-e APP_ENV=production \
|
||||||
kode.sadateknologi.site/${{ gitea.repository_owner }}/kulakpos_web:$IMAGE_TAG
|
kode.sadateknologi.site/${{ gitea.repository_owner }}/kulakpos_web:$IMAGE_TAG
|
||||||
@@ -239,9 +240,14 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
EOF
|
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
|
- name: Verify Production Deployment
|
||||||
run: |
|
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!"
|
echo "✅ Production deployment verified!"
|
||||||
|
|
||||||
- name: Send Deployment Notification
|
- name: Send Deployment Notification
|
||||||
|
|||||||
Reference in New Issue
Block a user