From 47fc9ecafee9b670e6c2a1a4bb95d454400e90dc Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Sat, 7 Nov 2026 09:24:13 +0100 Subject: [PATCH] fix(nightly): verify the docker CLI download, limit and label the agent container Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/nightly.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/nightly.yml b/.gitea/workflows/nightly.yml index a13258e..2de476f 100644 --- a/.gitea/workflows/nightly.yml +++ b/.gitea/workflows/nightly.yml @@ -137,12 +137,18 @@ jobs: # tenant; source_only matches staging. - name: Start the agent run: | - curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-27.5.1.tgz \ - | tar xz --strip-components=1 -C /usr/local/bin docker/docker + curl -fsSL -o /tmp/docker.tgz \ + https://download.docker.com/linux/static/stable/x86_64/docker-27.5.1.tgz + echo "4f798b3ee1e0140eab5bf30b0edc4e84f4cdb53255a429dc3bbae9524845d640 /tmp/docker.tgz" \ + | sha256sum -c - + tar xzf /tmp/docker.tgz --strip-components=1 -C /usr/local/bin docker/docker echo "$REGISTRY_PASSWORD" | docker login repo.breakpilot.com -u "$REGISTRY_USERNAME" --password-stdin # -e NAME without a value passes this step's variable, so no secret - # appears on the command line. + # appears on the command line. The container runs on the runner's + # daemon, outside the job's own limits, so it has its own; the label + # finds one a cancelled job left behind. docker run -d --pull always --name "nightly-agent-${GITHUB_RUN_ID}" \ + --label pruefwerk-nightly --memory 4g --cpus 2 \ --network "container:$(hostname)" \ -e APP_ENV=dev \ -e MONGODB_URI=mongodb://root:example@mongo:27017/?authSource=admin \