You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi All,
How can multiple preview environments be created on the same branch?
The following will create one preview environment when I open a pull request from branch1 to master (env1 of branch1)
What if I want to create an environment 2 of branch1
Thanks
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi All,
How can multiple preview environments be created on the same branch?
The following will create one preview environment when I open a pull request from branch1 to master (env1 of branch1)
What if I want to create an environment 2 of branch1
Thanks
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: fb-matrix
spec:
goTemplate: true
generators:
generators:
github:
owner: name
repo: argo-plugin
labels:
tokenRef:
secretName: github-secret
key: token
requeueAfterSeconds: 30
configMapRef:
name: cm-plugin
input:
parameters:
repositories:
branches: ['{{.branch}}']
branches: ['branch2']
requeueAfterSeconds: 10
template:
metadata:
name: "fb-matrix-{{.branch}}-1"
spec:
source:
repoURL: "https://github.com/name/argo-plugin.git"
targetRevision: "HEAD"
path: charts/app-client
helm:
releaseName: feature-test-matrix-{{.branch}}
valueFiles:
values: |
front:
image: hub.docker.com/repositories/name/front:{{ .serviceData.digitFront }}
back:
image: hub.docker.com/repositories/name/back:{{ .serviceData.digitBack }}
project: default
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
destination:
name: in-cluster
namespace: 'pr-{{.branch}}'
Beta Was this translation helpful? Give feedback.
All reactions