change flux to use git instead of imagepolicy
This commit is contained in:
parent
7bbce0171f
commit
9110d8a200
29
k/flux.yaml
29
k/flux.yaml
|
@ -1,23 +1,26 @@
|
||||||
---
|
---
|
||||||
apiVersion: image.toolkit.fluxcd.io/v1beta2
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||||||
kind: ImageRepository
|
kind: GitRepository
|
||||||
metadata:
|
metadata:
|
||||||
name: docker-act-runner
|
name: docker-act-runner
|
||||||
namespace: gitea
|
namespace: gitea
|
||||||
spec:
|
spec:
|
||||||
image: git.strudelline.net/cascade/docker-act_runner
|
interval: 5m0s
|
||||||
interval: 1m
|
url: https://git.strudelline.net/cascade/docker-act_runner
|
||||||
|
ref:
|
||||||
|
branch: main
|
||||||
---
|
---
|
||||||
apiVersion: image.toolkit.fluxcd.io/v1beta2
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
kind: ImagePolicy
|
kind: Kustomization
|
||||||
metadata:
|
metadata:
|
||||||
name: docker-act-runner-prod
|
name: docker-act-runner
|
||||||
namespace: gitea
|
namespace: gitea
|
||||||
spec:
|
spec:
|
||||||
imageRepositoryRef:
|
interval: 10m
|
||||||
|
targetNamespace: gitea
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
name: docker-act-runner
|
name: docker-act-runner
|
||||||
filterTags:
|
path: "./k"
|
||||||
pattern: '^main-.*'
|
prune: true
|
||||||
policy:
|
timeout: 1m
|
||||||
alphabetical:
|
|
||||||
order: asc
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user