-
Notifications
You must be signed in to change notification settings - Fork 0
/
pr-generator.yml
34 lines (34 loc) · 910 Bytes
/
pr-generator.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: myapps
namespace: argocd
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- pullRequest:
github:
owner: kostis-codefresh
repo: preview-env-source-code
requeueAfterSeconds: 180
template:
metadata:
name: 'myapp-{{.branch}}'
spec:
source:
repoURL: 'https://github.com/kostis-codefresh/preview-env-manifests.git'
targetRevision: HEAD
path: kustomize-preview-app/
kustomize:
images:
- 'docker.io/kostiscodefresh/my-preview-app:{{.head_short_sha_7}}'
project: "default"
destination:
server: https://kubernetes.default.svc
namespace: 'preview-{{.branch_slug}}'
syncPolicy:
automated:
prune: true
syncOptions:
- CreateNamespace=true