Simplify workflow: build and push only
All checks were successful
Build and Push / build (push) Successful in 11s
All checks were successful
Build and Push / build (push) Successful in 11s
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Build and Deploy
|
||||
name: Build and Push
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -9,7 +9,7 @@ env:
|
||||
IMAGE_NAME: ragincajunbanjo/openclaw-proxy
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -30,20 +30,3 @@ jobs:
|
||||
tags: |
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.sha }}
|
||||
|
||||
- name: Deploy to local Docker
|
||||
run: |
|
||||
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||
cd ${{ gitea.workspace }}
|
||||
docker compose -f docker-compose.yml down --remove-orphans || true
|
||||
docker compose -f docker-compose.yml up -d openclaw
|
||||
echo "Waiting for health check..."
|
||||
for i in $(seq 1 60); do
|
||||
if curl -sf http://127.0.0.1:3456/health > /dev/null 2>&1; then
|
||||
echo "Deployment successful!"
|
||||
exit 0
|
||||
fi
|
||||
sleep 2
|
||||
done
|
||||
echo "WARNING: Health check didn't pass within 120s"
|
||||
docker compose logs openclaw
|
||||
|
||||
Reference in New Issue
Block a user