forejo ci update
This commit is contained in:
parent
6505e958cb
commit
7c5493b31f
2 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue