Carry the edits the first commit left unstaged
CI / tests (pull_request) Has been cancelled

This commit is contained in:
2026-12-03 23:52:10 +01:00
parent 3b07c05eba
commit f3f9c91348
19 changed files with 366 additions and 332 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ cd "$(dirname "$0")"
socket=/var/run/docker.sock
# An untagged image, which docker image prune removes, since a cancelled run skips any cleanup.
image=$(printf 'FROM docker:29.1.3-cli AS docker\nFROM python:3.14.8\nCOPY --from=docker /usr/local/bin/docker /usr/local/bin/docker\n' | docker build --quiet --memory 1g --memory-swap 1g -)
# deploy-release names the container in CI_CONTAINER, to remove it where it stops a run that hangs: stopping this script and its docker client leaves the container running. CI gives no name.
# cut-release names the container in CI_CONTAINER, to remove it where it stops a run that hangs: stopping this script and its docker client leaves the container running. CI gives no name.
git bundle create - HEAD | docker run --rm -i ${CI_CONTAINER:+--name "$CI_CONTAINER"} --memory 4g --memory-swap 4g --user "$(id -u):$(id -g)" --group-add "$(stat -c %g "$socket")" -v "$socket:$socket" -e HOME=/tmp "$image" sh -euc '
cat >/tmp/head.bundle
git -c init.defaultBranch=main -c advice.detachedHead=false clone --quiet /tmp/head.bundle /tmp/repo