ci(atlasbot): add Jenkins job and image automation
This commit is contained in:
parent
98c5981869
commit
a2833f3c26
26
services/atlasbot/image-automation.yaml
Normal file
26
services/atlasbot/image-automation.yaml
Normal file
@ -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
|
||||
@ -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"}
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user