update
Container CI / release-build (push) Has been cancelled

Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-25 23:54:51 +03:00
1 parent 0b7af2e96a
commit 41937b2987
4 files changed
+58 -17

No files matched your search

+28 -8
View File
@@ -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:
+10 -7
View File
@@ -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 }}
+10 -1
View File
@@ -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:
+10 -1
View File
@@ -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: