Skip to content

Commit

Permalink
docs(core): env-vars in launch template (#21757)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacplmann committed Feb 12, 2024
1 parent 94593cc commit 86b1369
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/nx-cloud/reference/launch-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,20 @@ _Note: Windows-based images can only run on Windows-based resource classes._

Enterprise accounts can use custom images.

## Pass Environment Variables to Agents

If you need to send environment variables to agents, you can use the [--with-env-vars](/ci/reference/nx-cloud-cli#withenvvars) flag on the `nx-cloud start-ci-run` command. You can pass a specific list of environment variables like this:

```
nx-cloud start-ci-run --distribute-on="8 linux-medium-js" --with-env-vars="VAR1,VAR2"
```

Or pass all the environment variables except OS-specific ones with this `--with-env-vars="auto"`:

```
nx-cloud start-ci-run --distribute-on="8 linux-medium-js" --with-env-vars="auto"
```

## Reusable Steps

You can find the list of reusable step [here](https://github.com/nrwl/nx-cloud-workflows/tree/main/workflow-steps).
You can find the [list of reusable steps here](https://github.com/nrwl/nx-cloud-workflows/tree/main/workflow-steps).

0 comments on commit 86b1369

Please sign in to comment.