From 4a369ac7835a1e3316adfe0f40d4e6444664b665 Mon Sep 17 00:00:00 2001 From: esdrasrenan Date: Tue, 16 Dec 2025 20:17:19 -0300 Subject: [PATCH] fix(ci): corrige runs-on dos workflows Forgejo para self-hosted MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .forgejo/workflows/ci-cd-web-desktop.yml | 2 +- .forgejo/workflows/quality-checks.yml | 2 +- docs/FORGEJO-CI-CD.md | 12 +++++++++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/ci-cd-web-desktop.yml b/.forgejo/workflows/ci-cd-web-desktop.yml index 868a1fa..97a72b0 100644 --- a/.forgejo/workflows/ci-cd-web-desktop.yml +++ b/.forgejo/workflows/ci-cd-web-desktop.yml @@ -24,7 +24,7 @@ env: jobs: changes: name: Detect changes - runs-on: ubuntu-latest + runs-on: [ self-hosted, linux, vps ] timeout-minutes: 5 outputs: convex: ${{ steps.filter.outputs.convex }} diff --git a/.forgejo/workflows/quality-checks.yml b/.forgejo/workflows/quality-checks.yml index 0c3bca0..ee9a02f 100644 --- a/.forgejo/workflows/quality-checks.yml +++ b/.forgejo/workflows/quality-checks.yml @@ -11,7 +11,7 @@ on: jobs: lint-test-build: name: Lint, Test and Build - runs-on: ubuntu-latest + runs-on: [ self-hosted, linux, vps ] env: BETTER_AUTH_SECRET: test-secret NEXT_PUBLIC_APP_URL: http://localhost:3000 diff --git a/docs/FORGEJO-CI-CD.md b/docs/FORGEJO-CI-CD.md index aefcd04..e566ffc 100644 --- a/docs/FORGEJO-CI-CD.md +++ b/docs/FORGEJO-CI-CD.md @@ -137,6 +137,7 @@ Jobs: Os workflows do Forgejo sao quase identicos aos do GitHub Actions. Principais diferencas: 1. **Localizacao:** `.forgejo/workflows/` em vez de `.github/workflows/` + 2. **Actions URL:** Usar `https://github.com/` prefixo nas actions ```yaml # 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 ``` -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