diff --git a/services/atlasbot/image-automation.yaml b/services/atlasbot/image-automation.yaml new file mode 100644 index 0000000..fdd7547 --- /dev/null +++ b/services/atlasbot/image-automation.yaml @@ -0,0 +1,26 @@ +# services/atlasbot/image-automation.yaml +apiVersion: image.toolkit.fluxcd.io/v1 +kind: ImageUpdateAutomation +metadata: + name: atlasbot + namespace: ai +spec: + interval: 1m0s + sourceRef: + kind: GitRepository + name: flux-system + namespace: flux-system + git: + checkout: + ref: + branch: feature/atlasbot + commit: + author: + name: flux-bot + email: ops@bstein.dev + messageTemplate: "chore(atlasbot): automated image update" + push: + branch: feature/atlasbot + update: + path: services/atlasbot + strategy: Setters diff --git a/services/atlasbot/kustomization.yaml b/services/atlasbot/kustomization.yaml index 7a01eb0..ee637ce 100644 --- a/services/atlasbot/kustomization.yaml +++ b/services/atlasbot/kustomization.yaml @@ -9,6 +9,7 @@ resources: - secretproviderclass.yaml - vault-sync-deployment.yaml - image.yaml + - image-automation.yaml images: - name: registry.bstein.dev/bstein/atlasbot newTag: 0.1.0-139 # {"$imagepolicy": "ai:atlasbot:tag"} diff --git a/services/jenkins/configmap-jcasc.yaml b/services/jenkins/configmap-jcasc.yaml index bdd460e..04c0819 100644 --- a/services/jenkins/configmap-jcasc.yaml +++ b/services/jenkins/configmap-jcasc.yaml @@ -167,6 +167,32 @@ data: } } } + pipelineJob('atlasbot') { + properties { + pipelineTriggers { + triggers { + scmTrigger { + scmpoll_spec('H/2 * * * *') + ignorePostCommitHooks(false) + } + } + } + } + definition { + cpsScm { + scm { + git { + remote { + url('https://scm.bstein.dev/bstein/atlasbot.git') + credentials('gitea-pat') + } + branches('*/master') + } + } + scriptPath('Jenkinsfile') + } + } + } pipelineJob('Soteria') { properties { pipelineTriggers {