390 lines
9.7 KiB
YAML
390 lines
9.7 KiB
YAML
apiVersion: triggers.tekton.dev/v1beta1
|
|
kind: TriggerTemplate
|
|
metadata:
|
|
name: msebuild-template
|
|
spec:
|
|
params:
|
|
- name: url
|
|
- name: revision
|
|
- name: image
|
|
- name: tag
|
|
- name: dockerfile
|
|
- name: registry
|
|
- name: apiurl
|
|
- name: requestid
|
|
- name: requesttype
|
|
|
|
resourcetemplates:
|
|
# Portal
|
|
- apiVersion: tekton.dev/v1beta1
|
|
kind: PipelineRun
|
|
metadata:
|
|
generateName: msebuild-portal-run-
|
|
namespace: tekton
|
|
spec:
|
|
serviceAccountName: build-bot
|
|
pipelineRef:
|
|
name: imagebuild
|
|
podTemplate:
|
|
securityContext:
|
|
fsGroup: 65532
|
|
workspaces:
|
|
- name: shared-data
|
|
volumeClaimTemplate:
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
- name: docker-credentials
|
|
secret:
|
|
secretName: regcred
|
|
- name: git-credentials
|
|
secret:
|
|
secretName: git-credentials
|
|
- name: gitea-access-token
|
|
secret:
|
|
secretName: gitea-access-token
|
|
params:
|
|
- name: url
|
|
value: $(tt.params.url)
|
|
- name: revision
|
|
value: $(tt.params.revision)
|
|
- name: image
|
|
value: portal
|
|
- name: tag
|
|
value: $(tt.params.tag)
|
|
- name: dockerfile
|
|
value: ./misc/k8s/images/portal/Dockerfile
|
|
- name: context
|
|
value: ./
|
|
- name: registry
|
|
value: $(tt.params.registry)
|
|
- name: apiurl
|
|
value: $(tt.params.apiurl)
|
|
- name: requestid
|
|
value: $(tt.params.requestid)
|
|
- name: requesttype
|
|
value: pullrequest
|
|
|
|
# Hydra Dispatcher Theme
|
|
- apiVersion: tekton.dev/v1beta1
|
|
kind: PipelineRun
|
|
metadata:
|
|
generateName: msebuild-hydra-dispatcher-theme-run-
|
|
namespace: tekton
|
|
spec:
|
|
serviceAccountName: build-bot
|
|
pipelineRef:
|
|
name: imagebuild
|
|
podTemplate:
|
|
securityContext:
|
|
fsGroup: 65532
|
|
workspaces:
|
|
- name: shared-data
|
|
volumeClaimTemplate:
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
- name: docker-credentials
|
|
secret:
|
|
secretName: regcred
|
|
- name: git-credentials
|
|
secret:
|
|
secretName: git-credentials
|
|
- name: gitea-access-token
|
|
secret:
|
|
secretName: gitea-access-token
|
|
params:
|
|
- name: url
|
|
value: $(tt.params.url)
|
|
- name: revision
|
|
value: $(tt.params.revision)
|
|
- name: image
|
|
value: hydra-dispatcher-theme
|
|
- name: context
|
|
value: misc/k8s/images/hydra-dispatcher-mse-theme
|
|
- name: tag
|
|
value: $(tt.params.tag)
|
|
- name: dockerfile
|
|
value: ./misc/k8s/images/hydra-dispatcher-mse-theme/Dockerfile
|
|
- name: registry
|
|
value: $(tt.params.registry)
|
|
- name: apiurl
|
|
value: $(tt.params.apiurl)
|
|
- name: requestid
|
|
value: $(tt.params.requestid)
|
|
- name: requesttype
|
|
value: pullrequest
|
|
|
|
# Hydra SQL Theme
|
|
- apiVersion: tekton.dev/v1beta1
|
|
kind: PipelineRun
|
|
metadata:
|
|
generateName: msebuild-hydra-sql-theme-run-
|
|
namespace: tekton
|
|
spec:
|
|
serviceAccountName: build-bot
|
|
pipelineRef:
|
|
name: imagebuild
|
|
podTemplate:
|
|
securityContext:
|
|
fsGroup: 65532
|
|
workspaces:
|
|
- name: shared-data
|
|
volumeClaimTemplate:
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
- name: docker-credentials
|
|
secret:
|
|
secretName: regcred
|
|
- name: git-credentials
|
|
secret:
|
|
secretName: git-credentials
|
|
- name: gitea-access-token
|
|
secret:
|
|
secretName: gitea-access-token
|
|
params:
|
|
- name: url
|
|
value: $(tt.params.url)
|
|
- name: revision
|
|
value: $(tt.params.revision)
|
|
- name: image
|
|
value: hydra-sql-theme
|
|
- name: context
|
|
value: misc/k8s/images/hydra-sql-mse-theme
|
|
- name: tag
|
|
value: $(tt.params.tag)
|
|
- name: dockerfile
|
|
value: ./misc/k8s/images/hydra-sql-mse-theme/Dockerfile
|
|
- name: registry
|
|
value: $(tt.params.registry)
|
|
- name: apiurl
|
|
value: $(tt.params.apiurl)
|
|
- name: requestid
|
|
value: $(tt.params.requestid)
|
|
- name: requesttype
|
|
value: pullrequest
|
|
|
|
# Job Base
|
|
- apiVersion: tekton.dev/v1beta1
|
|
kind: PipelineRun
|
|
metadata:
|
|
generateName: msebuild-job-base-run-
|
|
namespace: tekton
|
|
spec:
|
|
serviceAccountName: build-bot
|
|
pipelineRef:
|
|
name: imagebuild
|
|
podTemplate:
|
|
securityContext:
|
|
fsGroup: 65532
|
|
workspaces:
|
|
- name: shared-data
|
|
volumeClaimTemplate:
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
- name: docker-credentials
|
|
secret:
|
|
secretName: regcred
|
|
- name: git-credentials
|
|
secret:
|
|
secretName: git-credentials
|
|
- name: gitea-access-token
|
|
secret:
|
|
secretName: gitea-access-token
|
|
params:
|
|
- name: url
|
|
value: $(tt.params.url)
|
|
- name: revision
|
|
value: $(tt.params.revision)
|
|
- name: image
|
|
value: job-base
|
|
- name: context
|
|
value: misc/k8s/images/job-base
|
|
- name: tag
|
|
value: $(tt.params.tag)
|
|
- name: dockerfile
|
|
value: ./misc/k8s/images/job-base/Dockerfile
|
|
- name: registry
|
|
value: $(tt.params.registry)
|
|
- name: apiurl
|
|
value: $(tt.params.apiurl)
|
|
- name: requestid
|
|
value: $(tt.params.requestid)
|
|
- name: requesttype
|
|
value: pullrequest
|
|
|
|
# Mock
|
|
- apiVersion: tekton.dev/v1beta1
|
|
kind: PipelineRun
|
|
metadata:
|
|
generateName: msebuild-mock-run-
|
|
namespace: tekton
|
|
spec:
|
|
serviceAccountName: build-bot
|
|
pipelineRef:
|
|
name: imagebuild
|
|
podTemplate:
|
|
securityContext:
|
|
fsGroup: 65532
|
|
workspaces:
|
|
- name: shared-data
|
|
volumeClaimTemplate:
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
- name: docker-credentials
|
|
secret:
|
|
secretName: regcred
|
|
- name: git-credentials
|
|
secret:
|
|
secretName: git-credentials
|
|
- name: gitea-access-token
|
|
secret:
|
|
secretName: gitea-access-token
|
|
params:
|
|
- name: url
|
|
value: $(tt.params.url)
|
|
- name: revision
|
|
value: $(tt.params.revision)
|
|
- name: image
|
|
value: mock
|
|
- name: context
|
|
value: misc/k8s/images/mock
|
|
- name: tag
|
|
value: $(tt.params.tag)
|
|
- name: dockerfile
|
|
value: ./misc/k8s/images/mock/Dockerfile
|
|
- name: registry
|
|
value: $(tt.params.registry)
|
|
- name: apiurl
|
|
value: $(tt.params.apiurl)
|
|
- name: requestid
|
|
value: $(tt.params.requestid)
|
|
- name: requesttype
|
|
value: pullrequest
|
|
|
|
# Ines
|
|
- apiVersion: tekton.dev/v1beta1
|
|
kind: PipelineRun
|
|
metadata:
|
|
generateName: msebuild-ines-run-
|
|
namespace: tekton
|
|
spec:
|
|
serviceAccountName: build-bot
|
|
pipelineRef:
|
|
name: imagebuild
|
|
podTemplate:
|
|
securityContext:
|
|
fsGroup: 65532
|
|
workspaces:
|
|
- name: shared-data
|
|
volumeClaimTemplate:
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
- name: docker-credentials
|
|
secret:
|
|
secretName: regcred
|
|
- name: git-credentials
|
|
secret:
|
|
secretName: git-credentials
|
|
- name: gitea-access-token
|
|
secret:
|
|
secretName: gitea-access-token
|
|
params:
|
|
- name: url
|
|
value: $(tt.params.url)
|
|
- name: revision
|
|
value: $(tt.params.revision)
|
|
- name: image
|
|
value: ines
|
|
- name: context
|
|
value: misc/k8s/images/ines
|
|
- name: tag
|
|
value: $(tt.params.tag)
|
|
- name: dockerfile
|
|
value: ./misc/k8s/images/ines/Dockerfile
|
|
- name: registry
|
|
value: $(tt.params.registry)
|
|
- name: apiurl
|
|
value: $(tt.params.apiurl)
|
|
- name: requestid
|
|
value: $(tt.params.requestid)
|
|
- name: requesttype
|
|
value: pullrequest
|
|
|
|
# Shibboleth-sp
|
|
- apiVersion: tekton.dev/v1beta1
|
|
kind: PipelineRun
|
|
metadata:
|
|
generateName: msebuild-shibboleth-sp-run-
|
|
namespace: tekton
|
|
spec:
|
|
serviceAccountName: build-bot
|
|
pipelineRef:
|
|
name: imagebuild
|
|
podTemplate:
|
|
securityContext:
|
|
fsGroup: 65532
|
|
workspaces:
|
|
- name: shared-data
|
|
volumeClaimTemplate:
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
- name: docker-credentials
|
|
secret:
|
|
secretName: regcred
|
|
- name: git-credentials
|
|
secret:
|
|
secretName: git-credentials
|
|
- name: gitea-access-token
|
|
secret:
|
|
secretName: gitea-access-token
|
|
params:
|
|
- name: url
|
|
value: $(tt.params.url)
|
|
- name: revision
|
|
value: $(tt.params.revision)
|
|
- name: image
|
|
value: shibboleth-sp
|
|
- name: context
|
|
value: misc/k8s/images/sp
|
|
- name: tag
|
|
value: $(tt.params.tag)
|
|
- name: dockerfile
|
|
value: ./misc/k8s/images/sp/Dockerfile
|
|
- name: registry
|
|
value: $(tt.params.registry)
|
|
- name: apiurl
|
|
value: $(tt.params.apiurl)
|
|
- name: requestid
|
|
value: $(tt.params.requestid)
|
|
- name: requesttype
|
|
value: pullrequest
|
|
|
|
|