This repository has been archived on 2025-12-01. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
garm-test-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