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 \