fix: pass runner workspace to container actions
This commit is contained in:
1 parent
d96fc4d36b
commit
5d72bb092d
6 files changed
+66
-18
No files matched your search
@@ -45,7 +45,10 @@ metrics ports are needed. Runner cache is disabled.
|
||||
The CI workflow and `runner-smoke.yaml` target the repository runner label
|
||||
`akyldash-ci`. CI keeps the backend, Telegram, backup/restore, deployment,
|
||||
bootstrap, runner, Compose, and Caddy checks. Caddy validation runs in a pinned
|
||||
container action with explicit `/usr/bin/caddy` entrypoint. Both production
|
||||
container action with explicit `/usr/bin/caddy` entrypoint. The workflow passes
|
||||
Gitea's `${{ github.workspace }}` value into each container action; Caddy and
|
||||
Kaniko use that supplied path for repository files instead of assuming a
|
||||
container workspace location. Both production
|
||||
Dockerfiles are built in a separate pinned Kaniko container action with explicit
|
||||
`/kaniko/executor` entrypoint using the runner's rootless container engine; the
|
||||
job container receives no Docker socket. Kaniko uses `--no-push` and
|
||||
@@ -196,8 +199,12 @@ returned 403 and the scheduler's reason was not independently confirmed.
|
||||
On head `3a89dc21`, CI run 63 failed at the host audit root guard and smoke run
|
||||
64 succeeded. On head `436806a8`, CI run 65 failed in the Caddy container action
|
||||
with `exec: "validate": executable file not found`; Kaniko was skipped and smoke
|
||||
run 66 succeeded. This PR sets explicit Caddy and Kaniko entrypoints. Successful
|
||||
execution and resource fit still require a new runner canary. Root-guard tests
|
||||
run 66 succeeded. On head `d96fc4d3`, CI run 67 failed because the Caddy action
|
||||
looked for `/github/workspace/deploy/production/Caddyfile`, which was not
|
||||
mounted at that fixed path; Kaniko was skipped and smoke run 68 succeeded. This
|
||||
PR passes `${{ github.workspace }}` to the container actions and uses it for the
|
||||
Caddyfile, Kaniko context, and Dockerfile paths. A new runner canary must verify
|
||||
those paths and resource fit. Root-guard tests
|
||||
use `setpriv` for negative cases when jobs start as UID 0 and separately test
|
||||
the host-audit guard with simulated UID 0 and UID 65534; the real host audit,
|
||||
production config setup, and runner installer are never executed as root by
|
||||
|
||||
@@ -97,9 +97,12 @@ UFW rule details, and protected file metadata remain unverified.
|
||||
head `3a89dc21`, CI run 63 failed at the host audit root guard and smoke run 64
|
||||
succeeded. On head `436806a8`, CI run 65 failed in the Caddy container action
|
||||
with `exec: "validate": executable file not found`; Kaniko was skipped and
|
||||
smoke run 66 succeeded. This PR pins explicit action entrypoints. No VPS
|
||||
changes are made; successful image builds and fit within the configured 3 GiB
|
||||
/ 2 CPU per-job limits remain unverified.
|
||||
smoke run 66 succeeded. On head `d96fc4d3`, CI run 67 failed because the
|
||||
Caddy action's fixed `/github/workspace/...` path did not exist; Kaniko was
|
||||
skipped and smoke run 68 succeeded. The current branch passes
|
||||
`${{ github.workspace }}` to Caddy and Kaniko actions; a new runner run must
|
||||
verify workspace resolution, image builds, and fit within the configured
|
||||
3 GiB / 2 CPU per-job limits. No VPS changes are made.
|
||||
- An isolated local Compose smoke test built backend/OpenSearch images,
|
||||
reached healthy status for OpenSearch, backend, and Caddy, and returned HTTP
|
||||
200 for `/review` through Caddy. Its containers, networks, and volumes were
|
||||
@@ -152,6 +155,9 @@ Caddy validation and the two production Dockerfile builds. Kaniko image
|
||||
publishing and cache publishing are disabled. This repository change does not
|
||||
modify the VPS or grant workflow containers a Docker socket. CI run 65 failed
|
||||
in the Caddy action because the runner tried to execute `validate` directly;
|
||||
Kaniko was skipped. This PR sets explicit action entrypoints. A successful run
|
||||
must verify Caddy, both image builds, and resource fit before these actions are
|
||||
considered validated runner behavior.
|
||||
Kaniko was skipped. CI run 67 then found that the action's fixed
|
||||
`/github/workspace` path did not contain the repository; Kaniko was skipped.
|
||||
The branch now passes Gitea's `${{ github.workspace }}` value into all three
|
||||
container action invocations. A successful run must verify Caddy, both image
|
||||
builds, and resource fit before these actions are considered validated runner
|
||||
behavior.
|
||||
Reference in new issue
Block a user