name: Deploy to Staging on: push: branches: [main] jobs: build-and-deploy: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to Container Registry uses: docker/login-action@v3 with: registry: git.cloonar.com username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push Docker image uses: docker/build-push-action@v5 with: context: . platforms: linux/arm64 push: true tags: | git.cloonar.com/openclawd/snapapi:staging git.cloonar.com/openclawd/snapapi:${{ github.sha }} cache-from: type=gha cache-to: type=gha,mode=max - name: Deploy to staging run: | echo "Triggering staging deployment..." # The actual deployment is handled by ArgoCD or similar GitOps tool # This would typically update a helm chart or kubernetes manifest repo