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