Created
October 27, 2022 00:01
-
-
Save kainlite/7fe9fae060bc273e9d00f81a0967c92d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: triggers.tekton.dev/v1alpha1 | |
| kind: TriggerTemplate | |
| metadata: | |
| name: clone-build-push-template | |
| namespace: tekton-pipelines | |
| spec: | |
| params: | |
| - name: gitrevision | |
| description: The git revision (SHA) | |
| default: master | |
| - name: gitrepositoryurl | |
| description: The git repository url ("https://github.com/foo/bar.git") | |
| resourcetemplates: | |
| - apiVersion: tekton.dev/v1beta1 | |
| metadata: | |
| namespace: tekton-pipelines | |
| generateName: clone-build-push- | |
| spec: | |
| pipelineRef: | |
| name: clone-build-push | |
| podTemplate: | |
| securityContext: | |
| fsGroup: 65532 | |
| workspaces: | |
| - name: shared-data | |
| volumeClaimTemplate: | |
| spec: | |
| accessModes: | |
| - ReadWriteOnce | |
| resources: | |
| requests: | |
| storage: 1Gi | |
| - name: kubeconfig-dir | |
| configMap: | |
| name: kubeconfig | |
| - name: docker-credentials | |
| secret: | |
| secretName: docker-credentials | |
| params: | |
| - name: repo-url | |
| value: https://github.com/kainlite/tr.git | |
| - name: image-reference | |
| value: kainlite/tr:$(tt.params.gitrevision) | |
| kind: PipelineRun |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment