Skip to content

Commit 054bb19

Browse files
committed
docs: GitRepository commit without branch example
Signed-off-by: Hidde Beydals <hello@hidde.co>
1 parent 0110664 commit 054bb19

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/spec/v1beta1/gitrepositories.md

+15
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)