Skip to content

Commit d0ca107

Browse files
hiddecodarkowlzz
authored andcommitted
docs: GitRepository commit without branch example
Signed-off-by: Hidde Beydals <[email protected]>
1 parent a7f2e87 commit d0ca107

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/spec/v1beta1/gitrepositories.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,21 @@ spec:
273273
commit: 363a6a8fe6a7f13e05d34c163b0ef02a777da20a
274274
```
275275

276+
Checkout a specific commit:
277+
278+
```yaml
279+
apiVersion: source.toolkit.fluxcd.io/v1beta1
280+
kind: GitRepository
281+
metadata:
282+
name: podinfo
283+
namespace: default
284+
spec:
285+
interval: 1m
286+
url: https://github.com/stefanprodan/podinfo
287+
ref:
288+
commit: 363a6a8fe6a7f13e05d34c163b0ef02a777da20a
289+
```
290+
276291
Pull a specific tag:
277292

278293
```yaml

0 commit comments

Comments
 (0)