Set up
- In the console, create a CLI token for CI (Settings → CLI tokens).
- In your repository, add it as an Actions secret named
ENVLINK_TOKEN.
Workflow
.github/workflows/build.yml
Notes
ENVLINK_APIandENVLINK_TOKENstand in forenvctl login, so nothing is written to the runner’s disk.--snapshot ci/<branch>with--restore ci/<branch>,ci/mainstarts each run from the last one on the branch, or frommain, so the first sync sends only what changed.- Labels make cleanup exact, even when a step fails.
envctl sandbox down --forgetderegisters the runner and takes it off the tailnet.