CI: map nested Docker workspace
Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
1 parent
2e8e1fc0ba
commit
523355a128
4 files changed
+69
-64
No files matched your search
+5
-5
@@ -31,11 +31,11 @@ services:
|
||||
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. `scripts/release.sh` detects when it is
|
||||
running inside the job container and translates the checked-out workspace
|
||||
through that container's Docker mount table. This is required because bind
|
||||
mount paths passed to the socket are resolved by the runner host daemon, not
|
||||
inside the Actions job container.
|
||||
after changing its configuration. `scripts/lib/docker-daemon-path.sh` detects
|
||||
when commands run inside the job container and translates checked-out paths
|
||||
through that container's Docker mount table. The release wrapper and
|
||||
control-plane tests both use it because bind mount paths passed to the socket
|
||||
are resolved by the runner host daemon, not inside the Actions job container.
|
||||
|
||||
The SSH checkout steps pin the current `git.faumaray.ru` RSA host key. Its
|
||||
verified fingerprint is
|
||||
|
||||
@@ -41,16 +41,19 @@ jobs:
|
||||
scripts/release.sh --version "$CI_VERSION"
|
||||
|
||||
- name: Test release control-plane scripts
|
||||
shell: bash
|
||||
run: |
|
||||
set -eu
|
||||
bash scripts/tests/test-gitea-tag-verification.sh
|
||||
. scripts/lib/docker-daemon-path.sh
|
||||
docker_workspace=$(docker_daemon_path "$PWD")
|
||||
docker run --rm --network none \
|
||||
--volume "$PWD:/workspace:ro" \
|
||||
--volume "$docker_workspace:/workspace:ro" \
|
||||
--workdir /workspace \
|
||||
echoion-release-builder:gcc-16.1.0 \
|
||||
python3 scripts/tests/test_aggregate_update_feed.py
|
||||
docker run --rm --network none \
|
||||
--volume "$PWD:/workspace:ro" \
|
||||
--volume "$docker_workspace:/workspace:ro" \
|
||||
--workdir /workspace \
|
||||
echoion-release-builder:gcc-16.1.0 \
|
||||
python3 scripts/tests/test_gitea_release.py
|
||||
Reference in new issue
Block a user