github.com/diadata-org/diadata@v1.4.593/.tekton/Pipeline.BuildDocker.yaml (about) 1 apiVersion: tekton.dev/v1beta1 2 kind: Pipeline 3 metadata: 4 name: build-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: kaniko-build-docker 34 taskRef: 35 name: kaniko-build-docker 36 params: 37 - name: path-to-context 38 value: "$(params.path-to-context)" 39 - name: path-to-dockerfile 40 value: "$(params.path-to-dockerfile)" 41 - name: image-url 42 value: "$(params.image-url)" 43 - name: image-tag 44 value: "$(params.image-tag)" 45 resources: 46 inputs: 47 - name: git-source 48 resource: git-source 49 runAfter: 50 - build 51 - name: deploy-application 52 taskRef: 53 name: deploy-application 54 runAfter: 55 - kaniko-build-docker 56 params: 57 - name: path-to-context 58 value: "$(params.path-to-context)" 59 - name: path-to-yaml-file 60 value: "$(params.path-to-yaml-file)" 61 - name: image-url 62 value: "$(params.image-url)" 63 - name: image-tag 64 value: "$(params.image-tag)" 65 resources: 66 inputs: 67 - name: git-source 68 resource: git-source