mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-18 13:41:49 +00:00
Merge pull request #607 from fluxcd/docs-fix-image-updates-branch
Add branch to image automation docs
This commit is contained in:
commit
c8265fb80c
1 changed files with 8 additions and 0 deletions
|
|
@ -179,6 +179,12 @@ spec:
|
||||||
range: 5.0.x
|
range: 5.0.x
|
||||||
```
|
```
|
||||||
|
|
||||||
|
!!! hint "semver ranges"
|
||||||
|
A semver range that includes stable releases can be defined with
|
||||||
|
`1.0.x` (patch versions only) or `>=1.0.0 <2.0.0` (minor and patch versions).
|
||||||
|
If you want to include pre-release e.g. `1.0.0-rc.1`,
|
||||||
|
you can define a range like: `>1.0.0-rc <2.0.0`.
|
||||||
|
|
||||||
Commit and push changes to main branch:
|
Commit and push changes to main branch:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
@ -225,6 +231,7 @@ Create an `ImageUpdateAutomation` to tell Flux which Git repository to write ima
|
||||||
```sh
|
```sh
|
||||||
flux create image update flux-system \
|
flux create image update flux-system \
|
||||||
--git-repo-ref=flux-system \
|
--git-repo-ref=flux-system \
|
||||||
|
--branch=main \
|
||||||
--author-name=fluxcdbot \
|
--author-name=fluxcdbot \
|
||||||
--author-email=fluxcdbot@users.noreply.github.com \
|
--author-email=fluxcdbot@users.noreply.github.com \
|
||||||
--commit-template="[ci skip] update image" \
|
--commit-template="[ci skip] update image" \
|
||||||
|
|
@ -241,6 +248,7 @@ metadata:
|
||||||
namespace: flux-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
checkout:
|
checkout:
|
||||||
|
branch: main
|
||||||
gitRepositoryRef:
|
gitRepositoryRef:
|
||||||
name: flux-system
|
name: flux-system
|
||||||
commit:
|
commit:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue