forejo ci update

This commit is contained in:
Graham McIntire 2026-02-03 14:04:55 -06:00
parent 6505e958cb
commit 7c5493b31f
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

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

View file

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