diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4ddb7bb..e9b865a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -171,34 +171,4 @@ jobs: docker push registry.johnogle.info/openclaw:latest || \ echo "::warning::Failed to push :latest tag (versioned tag already pushed)" - deploy-openclaw: - name: Deploy OpenClaw to Cluster - runs-on: ubuntu-latest - needs: build-and-push-openclaw - if: github.ref == 'refs/heads/main' && github.event_name == 'push' - steps: - - name: Checkout k3s-cluster-config - uses: actions/checkout@v4 - with: - repository: johno/k3s-cluster-config - token: ${{ secrets.CONFIG_REPO_TOKEN }} - path: k3s-cluster-config - - name: Update HelmRelease image tag - run: | - cd k3s-cluster-config - # Update HelmRelease image tags (quoted format: tag: "version") - sed -i 's|tag: ".*"|tag: "${{ needs.build-and-push-openclaw.outputs.image_tag }}"|' \ - clusters/oglenet/apps/communication/openclaw.yaml - # Update CronJob image reference (registry:tag format) - sed -i 's|registry.johnogle.info/openclaw:.*|registry.johnogle.info/openclaw:${{ needs.build-and-push-openclaw.outputs.image_tag }}|' \ - clusters/oglenet/apps/communication/openclaw.yaml - - - name: Commit and push - run: | - cd k3s-cluster-config - git config user.name "Gitea CI" - git config user.email "ci@johnogle.info" - git add clusters/oglenet/apps/communication/openclaw.yaml - git diff --cached --quiet || git commit -m "Deploy openclaw:${{ needs.build-and-push-openclaw.outputs.image_tag }}" - git push