mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-10 02:53:36 -05:00
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
|
apiVersion: tekton.dev/v1alpha1
|
||
|
kind: Pipeline
|
||
|
metadata:
|
||
|
name: build-and-deploy-pipeline
|
||
|
spec:
|
||
|
resources:
|
||
|
- name: git-source
|
||
|
type: git
|
||
|
params:
|
||
|
- name: pathToContext and space
|
||
|
description: The path to the build context, used by Kaniko - within the workspace
|
||
|
default:
|
||
|
- name: pathToYamlFile
|
||
|
description: The path to the yaml file to deploy within the git source
|
||
|
- name: imageUrl
|
||
|
description: Url of image repository
|
||
|
- name:
|
||
|
description: Tag to apply to the built image
|
||
|
tasks:
|
||
|
- name: source-to-image
|
||
|
taskRef:
|
||
|
name: source-to-image
|
||
|
params:
|
||
|
- name: pathToContext
|
||
|
value: "$(params.pathToContext)"
|
||
|
- name: imageUrl
|
||
|
value: "$(params.imageUrl)"
|
||
|
- name: imageTag
|
||
|
value: "$(params.imageTag)"
|
||
|
resources:
|
||
|
inputs:
|
||
|
- name: git-source
|
||
|
resource: git-source
|
||
|
- name: deploy-to-cluster
|
||
|
taskRef:
|
||
|
name: deploy-using-kubectl
|
||
|
runAfter:
|
||
|
- source-to-image
|
||
|
params:
|
||
|
- name: pathToYamlFile
|
||
|
value: "$(params.pathToYamlFile)"
|
||
|
- name: imageUrl
|
||
|
value: "$(params.imageUrl)"
|
||
|
- name: imageTag
|
||
|
value: "$(params.imageTag)"
|
||
|
resources:
|
||
|
inputs:
|
||
|
- name: git-source
|
||
|
resource: git-source
|