This commit is contained in:
2024-04-24 13:45:33 +02:00
parent 1f6c75e9f5
commit da2a6dc9c7

View File

@@ -42,27 +42,6 @@ spec:
workspaces:
- name: shared-workspace
workspace: source
- name: lint-shell-custom
onError: $(params.on-error)
when:
- input: "lint-shell-custom"
operator: in
values: ["$(params.stages[*])"]
params:
- name: args
value: $(params.shellcheck-args)
taskRef:
resolver: git
params:
- name: url
value: $(params.git-url)
- name: revision
value: $(params.git-revision)
- name: pathInRepo
value: ".tekton/lint-shell.yaml"
workspaces:
- name: shared-workspace
workspace: source
- name: lint-docker
onError: $(params.on-error)
when:
@@ -77,27 +56,6 @@ spec:
value: $(tasks.detect-stages.results.file-docker)
workspaces:
- name: source
- name: lint-docker-custom
onError: $(params.on-error)
when:
- input: "lint-docker-custom"
operator: in
values: ["$(params.stages[*])"]
taskRef:
resolver: git
params:
- name: url
value: $(params.git-url)
- name: revision
value: $(params.git-revision)
- name: pathInRepo
value: ".tekton/lint-docker.yaml"
matrix:
params:
- name: dockerfile-path
value: $(tasks.detect-stages.results.file-docker)
workspaces:
- name: source
- name: lint-yaml
onError: $(params.on-error)
when:
@@ -112,27 +70,6 @@ spec:
workspaces:
- name: shared-workspace
workspace: source
- name: lint-yaml-custom
onError: $(params.on-error)
when:
- input: "lint-yaml-custom"
operator: in
values: ["$(params.stages[*])"]
params:
- name: args
value: ["."]
taskRef:
resolver: git
params:
- name: url
value: $(params.git-url)
- name: revision
value: $(params.git-revision)
- name: pathInRepo
value: ".tekton/lint-yaml.yaml"
workspaces:
- name: shared-workspace
workspace: source
- name: lint-black
onError: $(params.on-error)
when:
@@ -147,27 +84,6 @@ spec:
workspaces:
- name: shared-workspace
workspace: source
- name: lint-black-custom
onError: $(params.on-error)
when:
- input: "lint-black-custom"
operator: in
values: ["$(params.stages[*])"]
params:
- name: args
value: $(params.black-args)
taskRef:
resolver: git
params:
- name: url
value: $(params.git-url)
- name: revision
value: $(params.git-revision)
- name: pathInRepo
value: ".tekton/lint-black.yaml"
workspaces:
- name: shared-workspace
workspace: source
- name: lint-python
onError: $(params.on-error)
when:
@@ -180,26 +96,5 @@ spec:
taskRef:
name: pylint
workspaces:
- name: shared-workspace
workspace: source
- name: lint-python-custom
onError: $(params.on-error)
when:
- input: "lint-python-custom"
operator: in
values: ["$(params.stages[*])"]
params:
- name: args
value: ["$(tasks.detect-stages.results.file-python[*])"]
taskRef:
resolver: git
params:
- name: url
value: $(params.git-url)
- name: revision
value: $(params.git-revision)
- name: pathInRepo
value: ".tekton/lint-python.yaml"
workspaces:
- name: shared-workspace
workspace: source