CICD-208 · Ephemeral runners
Encyclopedia · Runner administration and execution infrastructure · All snippets
Previous · CICD-207 · Next · CICD-209
1. Where it fits
- Placement CI run step or authorized lab terminal.
- Prerequisites lab host, trusted repositories, installed act_runner or GitHub runner when named.
- Platforms local-linux, github-actions, gitea-actions.
- Parameters
REGISTRATION_TOKEN,RUNNER_URL.
2. Copy the snippet
bash
./config.sh --url "${RUNNER_URL:?}" --token "${REGISTRATION_TOKEN:?}" --unattended --ephemeral --labels ci-ephemeral
./run.sh3. How it works
The provisioned GitHub runner registers for one job with the ephemeral flag. Lifecycle automation should remove the backing machine after it finishes.
4. Verify the result
Use a newly provisioned GitHub runner VM and destroy it after one assignment. Export logs before disposal.
Watch for. Use the intended trusted execution context. Keep secret values out of traces, artifacts and debug output.
Validation version-dependent (Bash parse). Status definitions.