From 41937b2987c1e31e584b85a787bc0f33a4ab0e94 Mon Sep 17 00:00:00 2001 From: faumaray Date: Sat, 25 Jul 2026 23:54:51 +0300 Subject: [PATCH] update Signed-off-by: faumaray --- .gitea/RELEASING.md | 36 ++++++++++++++++++++++++++++-------- .gitea/workflows/ci.yml | 17 ++++++++++------- .gitea/workflows/nightly.yml | 11 ++++++++++- .gitea/workflows/release.yml | 11 ++++++++++- 4 files changed, 58 insertions(+), 17 deletions(-) diff --git a/.gitea/RELEASING.md b/.gitea/RELEASING.md index cb3b5e1..23555ff 100644 --- a/.gitea/RELEASING.md +++ b/.gitea/RELEASING.md @@ -7,13 +7,31 @@ controls Docker; the workflow never starts `echoiond`. ## One-time Gitea setup -Register exactly one trusted Linux AMD64 Actions runner with the -`echoion-release` label and Docker access. Using one runner serializes release -and feed writes on Gitea versions that do not implement workflow -`concurrency`. Do not attach this label to runners serving untrusted -repositories. The runner host needs Bash, Git with SSH-signature support, -OpenSSH client tools, Python 3.10 or newer, OpenSSL with Ed25519 support, -coreutils, and Docker. The release builder itself remains containerized. +The workflows target the standard `ubuntu-24.04` label advertised by a default +Gitea runner. No custom runner label is required. Use one trusted Linux AMD64 +runner with capacity set to one so release and feed writes remain serialized +on Gitea versions that do not implement workflow `concurrency`. The job image +needs Bash, Git with SSH-signature support, OpenSSH client tools, Python 3.10 +or newer, OpenSSL with Ed25519 support, coreutils, the Docker CLI, and access +to a Docker daemon. The release builder itself remains containerized. + +Every workflow starts by running `docker version` and `docker info`. These +commands verify both the Docker client in the `ubuntu-24.04` job image and +access to the daemon before checkout, secrets, or a long release build are +used. A runner installed as a container must have the host socket mounted: + +```yaml +services: + runner: + volumes: + - ./data:/data + - /var/run/docker.sock:/var/run/docker.sock +``` + +Leave `container.docker_host` at its generated default (`""`) so `act_runner` +passes the detected Docker endpoint to job containers. Do not set it to `-`, +which explicitly prevents that endpoint from being mounted. Restart the runner +after changing its configuration. The Docker-capable runner executes only protected `main` pushes, manual runs, scheduled nightlies, and signed release tags. The container CI workflow does @@ -21,7 +39,9 @@ not run for pull requests because contributor-controlled scripts must not receive a privileged Docker socket or the private-submodule checkout key. If pre-merge CI is required, register a separate ephemeral `echoion-pr` runner without release secrets or host-level Docker access and give it a dedicated -workflow. +workflow. A global runner such as the default installation shown in Gitea must +only serve repositories you trust: a workflow with Docker-daemon access can +control the runner host. Enable Actions and add these repository secrets: diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c5cf1b9..19119d5 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -11,8 +11,17 @@ permissions: jobs: release-build: - runs-on: echoion-release + runs-on: ubuntu-24.04 steps: + - name: Verify the Docker-capable Gitea runner + shell: bash + run: | + set -euo pipefail + test "$(uname -s)" = Linux + command -v docker + docker version + docker info + - name: Check out source and nested repositories uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262 with: @@ -21,12 +30,6 @@ jobs: ssh-key: ${{ secrets.RELEASE_CHECKOUT_SSH_KEY }} persist-credentials: false - - name: Verify runner isolation prerequisites - run: | - set -eu - test "$(uname -s)" = Linux - docker version - - name: Build, test, and package without starting Echoion env: CI_VERSION: 0.0.0-ci.${{ gitea.run_number }}.${{ gitea.run_attempt }} diff --git a/.gitea/workflows/nightly.yml b/.gitea/workflows/nightly.yml index e6e5955..58216ef 100644 --- a/.gitea/workflows/nightly.yml +++ b/.gitea/workflows/nightly.yml @@ -10,8 +10,17 @@ permissions: jobs: publish-nightly: - runs-on: echoion-release + runs-on: ubuntu-24.04 steps: + - name: Verify the Docker-capable Gitea runner + shell: bash + run: | + set -euo pipefail + test "$(uname -s)" = Linux + command -v docker + docker version + docker info + - name: Check out main and nested repositories uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262 with: diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index f3c47a7..1f1655b 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -10,8 +10,17 @@ permissions: jobs: publish: - runs-on: echoion-release + runs-on: ubuntu-24.04 steps: + - name: Verify the Docker-capable Gitea runner + shell: bash + run: | + set -euo pipefail + test "$(uname -s)" = Linux + command -v docker + docker version + docker info + - name: Check out the signed tag uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262 with: