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 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