github.com/diadata-org/diadata@v1.4.593/.tekton/Pipeline.BuildLintDocker.yaml (about) 1 apiVersion: tekton.dev/v1beta1 2 kind: Pipeline 3 metadata: 4 name: build-lint-create-deploy 5 namespace: tekton-pipelines 6 spec: 7 resources: 8 - name: git-source 9 type: git 10 params: 11 - name: path-to-context 12 description: The path to the build context, used by Kaniko - within the workspace 13 default: . 14 - name: path-to-dockerfile 15 description: The path to the dockerfile 16 - name: path-to-yaml-file 17 description: The path to the yaml file to deploy within the git source 18 default: config.yaml 19 - name: image-url 20 description: Url of image repository 21 default: deploy_target 22 - name: image-tag 23 description: Tag to apply to the built image 24 default: latest 25 tasks: 26 - name: build 27 taskRef: 28 name: golang-build 29 resources: 30 inputs: 31 - name: git-source 32 resource: git-source 33 - name: lint 34 taskRef: 35 name: golangci-lint 36 resources: 37 inputs: 38 - name: git-source 39 resource: git-source 40 runAfter: 41 - build 42 - name: kaniko-build-docker 43 taskRef: 44 name: kaniko-build-docker 45 params: 46 - name: path-to-context 47 value: "$(params.path-to-context)" 48 - name: path-to-dockerfile 49 value: "$(params.path-to-dockerfile)" 50 - name: image-url 51 value: "$(params.image-url)" 52 - name: image-tag 53 value: "$(params.image-tag)" 54 resources: 55 inputs: 56 - name: git-source 57 resource: git-source 58 runAfter: 59 - lint 60 - name: deploy-application 61 taskRef: 62 name: deploy-application 63 runAfter: 64 - kaniko-build-docker 65 params: 66 - name: path-to-context 67 value: "$(params.path-to-context)" 68 - name: path-to-yaml-file 69 value: "$(params.path-to-yaml-file)" 70 - name: image-url 71 value: "$(params.image-url)" 72 - name: image-tag 73 value: "$(params.image-tag)" 74 resources: 75 inputs: 76 - name: git-source 77 resource: git-source