Simplify workflow: build and push only
All checks were successful
Build and Push / build (push) Successful in 11s

This commit is contained in:
Joshua Adkisson
2026-04-02 10:31:44 -05:00
parent a6a7f82109
commit e4f17a6c0d

View File

@@ -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