fix(ci): corrige runs-on dos workflows Forgejo para self-hosted
O runner Forgejo esta configurado como self-hosted, entao todos os jobs precisam usar as labels corretas em vez de ubuntu-latest. Alteracoes: - ci-cd-web-desktop.yml: job changes agora usa [self-hosted, linux, vps] - quality-checks.yml: job lint-test-build agora usa [self-hosted, linux, vps] - docs/FORGEJO-CI-CD.md: documentacao atualizada com essa diferenca 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
aaa64e339c
commit
4a369ac783
3 changed files with 13 additions and 3 deletions
|
|
@ -24,7 +24,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
changes:
|
changes:
|
||||||
name: Detect changes
|
name: Detect changes
|
||||||
runs-on: ubuntu-latest
|
runs-on: [ self-hosted, linux, vps ]
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
outputs:
|
outputs:
|
||||||
convex: ${{ steps.filter.outputs.convex }}
|
convex: ${{ steps.filter.outputs.convex }}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
lint-test-build:
|
lint-test-build:
|
||||||
name: Lint, Test and Build
|
name: Lint, Test and Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: [ self-hosted, linux, vps ]
|
||||||
env:
|
env:
|
||||||
BETTER_AUTH_SECRET: test-secret
|
BETTER_AUTH_SECRET: test-secret
|
||||||
NEXT_PUBLIC_APP_URL: http://localhost:3000
|
NEXT_PUBLIC_APP_URL: http://localhost:3000
|
||||||
|
|
|
||||||
|
|
@ -137,6 +137,7 @@ Jobs:
|
||||||
Os workflows do Forgejo sao quase identicos aos do GitHub Actions. Principais diferencas:
|
Os workflows do Forgejo sao quase identicos aos do GitHub Actions. Principais diferencas:
|
||||||
|
|
||||||
1. **Localizacao:** `.forgejo/workflows/` em vez de `.github/workflows/`
|
1. **Localizacao:** `.forgejo/workflows/` em vez de `.github/workflows/`
|
||||||
|
|
||||||
2. **Actions URL:** Usar `https://github.com/` prefixo nas actions
|
2. **Actions URL:** Usar `https://github.com/` prefixo nas actions
|
||||||
```yaml
|
```yaml
|
||||||
# GitHub Actions
|
# GitHub Actions
|
||||||
|
|
@ -146,7 +147,16 @@ Os workflows do Forgejo sao quase identicos aos do GitHub Actions. Principais di
|
||||||
uses: https://github.com/actions/checkout@v4
|
uses: https://github.com/actions/checkout@v4
|
||||||
```
|
```
|
||||||
|
|
||||||
3. **Secrets:** Configurar em Settings > Actions > Secrets no Forgejo
|
3. **runs-on:** Usar labels do self-hosted runner em vez de `ubuntu-latest`
|
||||||
|
```yaml
|
||||||
|
# GitHub Actions (hosted runner)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# Forgejo Actions (self-hosted)
|
||||||
|
runs-on: [ self-hosted, linux, vps ]
|
||||||
|
```
|
||||||
|
|
||||||
|
4. **Secrets:** Configurar em Settings > Actions > Secrets no Forgejo
|
||||||
|
|
||||||
## Manutencao
|
## Manutencao
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue