Sign in during Public Preview to get the Team plan free, plus an early-adopter discount when we launch. Sign in
You can use Locally in your CI pipeline to test and validate your infrastructure and application changes in pull requests.
In CI, Locally authenticates using OIDC - so you control which of your repositories can run Locally, and when your OIDC Trust belongs to a Team, Locally uses the same Locally Runbooks as the rest of your team.
There are dedicated guides for each CI provider:
locallybuild/setup-locally action.
Running Locally in CI is almost the same as running it on your machine with locally build, with a few differences:
locally setup.Locally signs in from CI using an OIDC (OpenID Connect) token from your CI provider, so you don't need to store any long-lived credentials in your CI configuration. There's built-in support for GitHub and GitLab, but it's possible to configure Locally to work with any OIDC provider (and if you do, we'd love to hear about it!).
You can configure OIDC within your Locally Account, either against your User (Account -> User CI (OIDC)) or against your Team (Teams -> [name] -> Team CI (OIDC)). When you add a New OIDC Trust, you'll need to specify:
* to allow working against all repositories within this User/Organisation).* to run against all branches).Locally looks for an OIDC token in the following order:
LOCALLY_OIDC_TOKEN or LOCALLY_OIDC_TOKEN_FILE, containing a pre-obtained OIDC token.permissions: id-token: write in your workflow.id_tokens configuration in your job with a LOCALLY_ID_TOKEN variable.How long a CI session can run, and how many can run at once, depends on your plan:
When a session reaches its limit, Locally exits with exit code 2 - so you can tell a session timing out apart from other failures in your CI pipeline:
Exit code 0 - Locally exited normally.Exit code 1 - An error occurred.Exit code 2 - The session limit was reached (Starter plan).Locally needs access to the same ports and endpoints as when running on your machine.
To set it up, follow the GitHub Actions guide, or Other CI Tools for any other CI provider. Once Locally's running, your pipeline runs commands through locally run as it would on your machine - the Guides cover each tool.
Sign in during Public Preview to get the Team plan free, plus an early-adopter discount when we launch. Sign in
Your Azure infrastructure, running on your machine. Deploy in seconds, break things freely, and ship to Azure when you're ready.