Deploys
Deploy jobs run on BareCI in their own pools, selected with the deploy kind in the label:
jobs: deploy: runs-on: bareci-2-deploy environment: production permissions: id-token: writeHow deploy pools differ
Section titled “How deploy pools differ”- On-demand only, so a spot interruption never cuts a deploy in half.
- No hot tier by default.
- Never share a cache scope with test jobs.
- Allowed branches only: the repository’s default branch and the branches listed in its
deployBranchessetting, checked against the job’s branch.
Secrets and credentials
Section titled “Secrets and credentials”Credentials work as on GitHub-hosted runners: GitHub injects the environment’s secrets into the job, and jobs should prefer OIDC to reach cloud providers. The machine itself has no cloud role and is destroyed after its one job, so a deploy’s secrets never meet another job.
GitHub environment protection, such as required reviewers and wait timers, applies unchanged, because GitHub queues the job only after it passes.
Deploy history per environment on the dashboard is planned.