mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 13:09:53 +00:00
image automation
This commit is contained in:
11
bootstrap/imagepolicies/imagepolicy-michaelthomson.yaml
Normal file
11
bootstrap/imagepolicies/imagepolicy-michaelthomson.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: image.toolkit.fluxcd.io/v1beta2
|
||||||
|
kind: ImagePolicy
|
||||||
|
metadata:
|
||||||
|
name: michaelthomson
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
imageRepositoryRef:
|
||||||
|
name: michaelthomson
|
||||||
|
policy:
|
||||||
|
semver:
|
||||||
|
range: '>=0.1.0'
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: image.toolkit.fluxcd.io/v1beta2
|
||||||
|
kind: ImageRepository
|
||||||
|
metadata:
|
||||||
|
name: michaelthomson
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
image: gitea.michaelthomson.dev/mthomson/michaelthomson
|
||||||
|
interval: 5m
|
||||||
|
secretRef:
|
||||||
|
name: gitea-registry-auth
|
||||||
24
bootstrap/imageupdateautomations/flux-system-automation.yaml
Normal file
24
bootstrap/imageupdateautomations/flux-system-automation.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
apiVersion: image.toolkit.fluxcd.io/v1beta1
|
||||||
|
kind: ImageUpdateAutomation
|
||||||
|
metadata:
|
||||||
|
name: flux-system
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
git:
|
||||||
|
checkout:
|
||||||
|
ref:
|
||||||
|
branch: main
|
||||||
|
commit:
|
||||||
|
author:
|
||||||
|
email: fluxcdbot@users.noreply.github.com
|
||||||
|
name: fluxcdbot
|
||||||
|
messageTemplate: '{{range .Updated.Images}}{{println .}}{{end}}'
|
||||||
|
push:
|
||||||
|
branch: main
|
||||||
|
interval: 5m0s
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: flux-system
|
||||||
|
update:
|
||||||
|
path: ./bootstrap
|
||||||
|
strategy: Setters
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
apiVersion: source.toolkit.fluxcd.io/v1beta2
|
|
||||||
kind: OCIRepository
|
|
||||||
metadata:
|
|
||||||
name: michaelthomson
|
|
||||||
namespace: flux-system
|
|
||||||
spec:
|
|
||||||
url: oci://gitea.michaelthomson.dev/mthomson/michaelthomson
|
|
||||||
interval: 5m
|
|
||||||
ref:
|
|
||||||
tag: latest
|
|
||||||
secretRef:
|
|
||||||
name: gitea-registry-auth
|
|
||||||
@@ -14,7 +14,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: michaelthomson
|
- name: michaelthomson
|
||||||
image: gitea.michaelthomson.dev/mthomson/michaelthomson:latest
|
image: gitea.michaelthomson.dev/mthomson/michaelthomson:latest # {"$imagepolicy": "flux-system:podinfo"}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
name: http
|
name: http
|
||||||
|
|||||||
Reference in New Issue
Block a user