ci: run publish on the docker label, not on the host #3
Loading…
Reference in a new issue
No description provided.
Delete branch "publish-on-docker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of oap/nix-config#130 (the "Optional" item).
Problem
The
bumpjob ran on thenixlabel: on the nixos host, asgitea-runner. All host jobs share that uid, so any other host job could readKVARTSI_TOKENwhile this job ran.Change
runs-on: docker: a new rootless podman container (uid 900, egress to public 80/443 only). The job uses only git, so it does not need the host.apk add --no-cache git, because the image isnode:22-alpine. kvartsi'sbuildjob does the same.shell: sh. The image has no bash. The script is POSIX, andset -euo pipefailworks in BusyBoxsh. I checked this withbusybox sh -n(BusyBox 1.37.0).Test
The job runs only on a push to
main, so this PR runs no CI. The first real test is the merge, or the next vault backup after it. Check that the run passes, and that kvartsiv5gets acontent: <sha>commit.If the run fails, revert this commit. The old
nixjob still works.🤖 Generated with Claude Code