mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-22 15:41:47 +00:00
docs: add authentication snippet example
Signed-off-by: Erik Kristensen <erik@erikkristensen.com>
This commit is contained in:
parent
1d82629b34
commit
60604481db
1 changed files with 12 additions and 0 deletions
|
|
@ -35,6 +35,18 @@ You can download a specific version with:
|
||||||
version: 0.32.0
|
version: 0.32.0
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can also authentication to the GitHub API using a secret
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- name: Setup Flux CLI
|
||||||
|
uses: fluxcd/flux2/action@main
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
```
|
||||||
|
|
||||||
|
This is useful if you are seeing failures on shared runners, those failures are usually API limits being hit.
|
||||||
|
|
||||||
### Automate Flux updates
|
### Automate Flux updates
|
||||||
|
|
||||||
Example workflow for updating Flux's components generated with `flux bootstrap --path=clusters/production`:
|
Example workflow for updating Flux's components generated with `flux bootstrap --path=clusters/production`:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue