From 04f19e813f96005ab6c9dd25a8564d34665a1e0d Mon Sep 17 00:00:00 2001 From: goose Date: Sun, 15 Feb 2026 20:41:58 -0300 Subject: [PATCH] fix(ci): Use Docker-labeled runner for all CI/CD jobs Updated all jobs in the lint-and-build workflow to use the Docker-labeled runner instead of ubuntu-latest. Changes: - lint job: runs-on: docker - build job: runs-on: docker - docker-build job: runs-on: docker Benefits: - Native Docker support - Faster builds - Better performance on local infrastructure - Consistent with server setup --- .forgejo/workflows/lint-and-build.yml | 6 +- FORGEJO-RUNNER-UPDATE.md | 80 +++++++++++++++++++++++++++ 2 files changed, 83 insertions(+), 3 deletions(-) create mode 100644 FORGEJO-RUNNER-UPDATE.md diff --git a/.forgejo/workflows/lint-and-build.yml b/.forgejo/workflows/lint-and-build.yml index 879c653..eea8eea 100644 --- a/.forgejo/workflows/lint-and-build.yml +++ b/.forgejo/workflows/lint-and-build.yml @@ -17,7 +17,7 @@ env: jobs: lint: name: Lint - runs-on: ubuntu-latest + runs-on: docker steps: - name: Checkout code uses: actions/checkout@v4 @@ -60,7 +60,7 @@ jobs: build: name: Build - runs-on: ubuntu-latest + runs-on: docker needs: lint steps: - name: Checkout code @@ -103,7 +103,7 @@ jobs: docker-build: name: Docker Build - runs-on: ubuntu-latest + runs-on: docker needs: build steps: - name: Checkout code diff --git a/FORGEJO-RUNNER-UPDATE.md b/FORGEJO-RUNNER-UPDATE.md new file mode 100644 index 0000000..44015da --- /dev/null +++ b/FORGEJO-RUNNER-UPDATE.md @@ -0,0 +1,80 @@ +# Forgejo CI/CD Runner Update + +**Date**: 2026-02-15 20:41:00 UTC +**Change**: Use Docker-labeled runner for all jobs + +--- + +## What Changed + +Updated all jobs in the CI/CD pipeline to use the Docker-labeled runner instead of the default ubuntu-latest runner. + +**Before**: +```yaml +jobs: + lint: + runs-on: ubuntu-latest +``` + +**After**: +```yaml +jobs: + lint: + runs-on: docker +``` + +--- + +## Why Use the Docker Runner? + +### **Benefits** +- ✅ Native Docker support +- ✅ Faster builds (Docker already available) +- ✅ Better performance on your infrastructure +- ✅ Consistent with your server setup +- ✅ Can build Docker images directly + +### **Runner Details** +- **Label**: `docker` +- **Platform**: Docker-based +- **Available**: Yes (configured on your server) + +--- + +## Affected Jobs + +All three jobs now use the Docker runner: + +1. **lint** - `runs-on: docker` +2. **build** - `runs-on: docker` +3. **docker-build** - `runs-on: docker` + +--- + +## Verification + +After pushing this change: + +1. Go to: http://gitea.soliverez.com.ar/alvaro/normogen/actions +2. Click on the latest workflow run +3. Verify all jobs use the Docker runner +4. Check that jobs complete successfully + +--- + +## Troubleshooting + +### If jobs fail with "runner not found": +1. Check runner status in Forgejo admin panel +2. Verify the docker label is configured +3. Check runner is online and unpaused + +### If Docker builds fail: +1. Verify Docker is installed on the runner +2. Check runner has sufficient disk space +3. Verify runner can access Docker registry + +--- + +**File Modified**: `.forgejo/workflows/lint-and-build.yml` +**Status**: ✅ Updated & Ready to Push