Add appsets to repo
All checks were successful
build-and-push / docker (push) Successful in 28s

This commit is contained in:
dobiadi
2024-10-25 00:36:38 +02:00
parent 9a6c8a47b9
commit bd61684255
2 changed files with 70 additions and 0 deletions

36
appset2.yaml Normal file
View File

@@ -0,0 +1,36 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: demo-pr-appset
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- pullRequest:
gitea:
owner: demo
repo: demo-app
api: https://shaggy.dobiadi.dev/
requeueAfterSeconds: 120
template:
metadata:
name: 'demo-app-pr-{{.number}}'
spec:
source:
repoURL: 'https://shaggy.dobiadi.dev/dobiadi/argo-app-template.git'
targetRevision: 'HEAD'
path: .
helm:
parameters:
- name: "image.tag"
value: "{{.head_short_sha_7}}"
- name: "ingress.hostname"
value: "demo-pr-{{.number}}.localhost"
- name: "pr"
value: "true"
project: "default"
syncPolicy:
automated: {}
destination:
server: https://kubernetes.default.svc
namespace: demo-app-{{.number}}