diff --git a/.forgejo/README.md b/.forgejo/README.md index 81b95519..76ce57c4 100644 --- a/.forgejo/README.md +++ b/.forgejo/README.md @@ -11,7 +11,7 @@ The `.forgejo/workflows/build-deploy.yml` file replaces `.gitlab-ci.yml` with eq | GitLab CI | Forgejo Actions | |-----------|-----------------| | `stages:` | `jobs:` (jobs run in dependency order) | -| `tags: [home]` | `runs-on: home` | +| `tags: [home]` | `runs-on: self-hosted` | | `rules:` | `on:` (trigger conditions) | | `$CI_COMMIT_SHA` | `${{ github.sha }}` | | `$CI_REGISTRY_IMAGE` | `${{ secrets.REGISTRY_URL }}/${{ github.repository }}` | @@ -28,7 +28,7 @@ Configure these in your Forgejo repository settings (Settings → Secrets): ### Required Runner Setup -The workflow assumes a self-hosted runner with label `home` that has: +The workflow assumes a self-hosted runner that has: 1. **Docker** - For building images 2. **kubectl** - Pre-configured with cluster access @@ -91,6 +91,6 @@ act push -W .forgejo/workflows/build-deploy.yml -j build - Verify cluster access: `kubectl get deployments -n towerops` **Runner not picking up jobs:** -- Verify runner is registered with label `home` +- Verify runner is registered as self-hosted - Check runner logs in Forgejo Actions settings - Ensure runner is online and connected diff --git a/.forgejo/workflows/build-deploy.yml b/.forgejo/workflows/build-deploy.yml index 978370fb..468d30f1 100644 --- a/.forgejo/workflows/build-deploy.yml +++ b/.forgejo/workflows/build-deploy.yml @@ -15,7 +15,7 @@ concurrency: jobs: build: - runs-on: home + runs-on: self-hosted steps: - name: Checkout code uses: actions/checkout@v4 @@ -52,7 +52,7 @@ jobs: BUILDKIT_INLINE_CACHE=1 deploy: - runs-on: home + runs-on: self-hosted needs: build environment: name: production