mse-tekton/kustomization/base/tekton/trigger/msebuild-template.yaml

372 lines
9.8 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
# 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: registry
# value: $(tt.params.registry)
# - name: apiurl
# value: $(tt.params.apiurl)
# - name: requestid
# value: $(tt.params.requestid)
# - name: requesttype
# value: pullrequest
# - name: access_token
# value: 69f6d1db6cf1e47dc7958ac20a31e76abf1582ee
# # 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
# params:
# - name: url
# value: $(tt.params.url)
# - name: revision
# value: $(tt.params.revision)
# - name: image
# value: hydra-dispatcher-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
# - name: access_token
# value: 69f6d1db6cf1e47dc7958ac20a31e76abf1582ee
# 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: 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
# params:
# - name: url
# value: $(tt.params.url)
# - name: revision
# value: $(tt.params.revision)
# - name: image
# value: 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
# - name: access_token
# value: 69f6d1db6cf1e47dc7958ac20a31e76abf1582ee
# # 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
# params:
# - name: url
# value: $(tt.params.url)
# - name: revision
# value: $(tt.params.revision)
# - name: image
# value: 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
# - name: access_token
# value: 69f6d1db6cf1e47dc7958ac20a31e76abf1582ee
# # 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
# params:
# - name: url
# value: $(tt.params.url)
# - name: revision
# value: $(tt.params.revision)
# - name: image
# value: 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
# - name: access_token
# value: 69f6d1db6cf1e47dc7958ac20a31e76abf1582ee
# # 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
# params:
# - name: url
# value: $(tt.params.url)
# - name: revision
# value: $(tt.params.revision)
# - name: image
# value: shibboleth-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
# - name: access_token
# value: 69f6d1db6cf1e47dc7958ac20a31e76abf1582ee