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: networking.k8s.io/v1 | |
| kind: Ingress | |
| metadata: | |
| name: tr-ingress | |
| namespace: tekton-pipelines | |
| annotations: | |
| kubernetes.io/ingress.class: "nginx" | |
| nginx.ingress.kubernetes.io/rewrite-target: "/" | |
| cert-manager.io/cluster-issuer: "letsencrypt-prod" | |
| nginx.ingress.kubernetes.io/ssl-redirect: "true" |
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 |
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: TriggerBinding | |
| metadata: | |
| name: clone-build-push-binding | |
| namespace: tekton-pipelines | |
| spec: | |
| params: | |
| - name: gitrepositoryurl | |
| value: $(body.repository.clone_url) | |
| - name: gitrevision |
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: v1 | |
| kind: Secret | |
| metadata: | |
| name: github-interceptor-secret | |
| type: Opaque | |
| stringData: | |
| secretToken: "1234567" |
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: EventListener | |
| metadata: | |
| name: clone-build-push | |
| namespace: tekton-pipelines | |
| spec: | |
| serviceAccountName: tekton-triggers-sa | |
| triggers: | |
| - name: github-listener | |
| interceptors: |
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: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: tekton-triggers-sa | |
| namespace: tekton-pipelines | |
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| kind: Role | |
| metadata: | |
| name: tekton-triggers-minimal |
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: tekton.dev/v1beta1 | |
| kind: PipelineRun | |
| metadata: | |
| name: clone-build-push-run | |
| namespace: tekton-pipelines | |
| spec: | |
| pipelineRef: | |
| name: clone-build-push | |
| podTemplate: | |
| securityContext: |
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: tekton.dev/v1beta1 | |
| kind: Pipeline | |
| metadata: | |
| name: clone-build-push | |
| namespace: tekton-pipelines | |
| spec: | |
| description: | | |
| This pipeline clones a git repo, builds a Docker image with Kaniko and | |
| pushes it to a registry | |
| params: |
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
| tkn -n tekton-pipelines hub install task git-clone | |
| tkn -n tekton-pipelines hub install task kaniko | |
| tkn -n tekton-pipelines hub install task kubernetes-actions |
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
| kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml | |
| kubectl apply --filename https://storage.googleapis.com/tekton-releases/triggers/latest/release.yaml | |
| kubectl apply --filename https://storage.googleapis.com/tekton-releases/triggers/latest/interceptors.yaml |