31 lines
953 B
YAML
31 lines
953 B
YAML
apiVersion: tekton.dev/v1beta1
|
|
kind: Task
|
|
metadata:
|
|
name: shellcheck
|
|
labels:
|
|
app.kubernetes.io/version: "0.1"
|
|
annotations:
|
|
tekton.dev/pipelines.minVersion: "0.12.1"
|
|
tekton.dev/categories: Code Quality
|
|
tekton.dev/tags: linter
|
|
tekton.dev/displayName: "Shellcheck"
|
|
tekton.dev/platforms: "linux/amd64"
|
|
spec:
|
|
description: >-
|
|
This task can be used to perform lint check on Shell Script files
|
|
workspaces:
|
|
- name: shared-workspace
|
|
description: A workspace that contains the fetched git repository.
|
|
params:
|
|
- name: args
|
|
type: array
|
|
description: extra args needs to append
|
|
default: ["--help"]
|
|
steps:
|
|
- name: lint-shell
|
|
image: docker.io/koalaman/shellcheck:v0.7.1@sha256:ad95c140f7bf5cc66e50e19da7d72c398583ba24c5866ac32c882eb3ddc153ee #tag: v0.7.1
|
|
workingDir: $(workspaces.shared-workspace.path)
|
|
command:
|
|
- /bin/shellcheck
|
|
args:
|
|
- $(params.args) |