fibonacci_pipeline/argo-workflows/templates/lint-scan-template.yaml
2024-11-08 12:37:54 +01:00

22 lines
No EOL
553 B
YAML

apiVersion: argoproj.io/v1alpha1
kind: ClusterWorkflowTemplate
metadata:
name: lint-scan-template
spec:
entrypoint: lint-scan
templates:
- name: lint-scan
container:
image: golangci/golangci-lint:v1.61.0
command: [sh, -c]
args:
- |
set -e
cd /shared-data/repo
golangci-lint run ./... --out-format=json --timeout 5m --issues-exit-code 1
echo lint-scan task completed
volumeMounts:
- name: shared-data
mountPath: /shared-data