change flux to use git instead of imagepolicy

This commit is contained in:
James Andariese 2024-03-28 21:36:27 -05:00
parent 5ad6197765
commit a6724a86f7

View File

@ -1,23 +1,26 @@
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImageRepository
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: docker-act-runner
namespace: gitea
spec:
image: git.strudelline.net/cascade/docker-act_runner
interval: 1m
interval: 5m0s
url: https://git.strudelline.net/cascade/docker-act_runner
ref:
branch: main
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImagePolicy
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: docker-act-runner-prod
name: docker-act-runner
namespace: gitea
spec:
imageRepositoryRef:
interval: 10m
targetNamespace: gitea
sourceRef:
kind: GitRepository
name: docker-act-runner
filterTags:
pattern: '^main-.*'
policy:
alphabetical:
order: asc
path: "./k"
prune: true
timeout: 1m