aboutsummaryrefslogtreecommitdiff
path: root/tasks/statix
diff options
context:
space:
mode:
authorChristian Segundo2024-02-25 22:04:03 +0100
committerChristian Segundo2024-02-25 22:07:29 +0100
commit56b2ce8dac32b8d6971505a5da4315f4381544c9 (patch)
treef1bfcd29086a1a95c0b4dc94a1d80013b8a1dd88 /tasks/statix
parent518a4d122887a67ad1d948e3a32be4c71c0d9790 (diff)
downloadconcourse-56b2ce8dac32b8d6971505a5da4315f4381544c9.tar.gz
add statix
Diffstat (limited to 'tasks/statix')
-rw-r--r--tasks/statix/task.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/tasks/statix/task.yml b/tasks/statix/task.yml
new file mode 100644
index 0000000..2d907e1
--- /dev/null
+++ b/tasks/statix/task.yml
@@ -0,0 +1,22 @@
+---
+platform: linux
+image_resource:
+ type: registry-image
+ source:
+ repository: docker.io/chn2guevara/nixci
+ tag: latest
+
+inputs:
+ - name: file-path
+
+run:
+ path: bash
+ args:
+ - -eufo
+ - pipefail
+ - -c
+ - |
+ statix check ${FILE_PATH}
+
+params:
+ FILE_PATH: file-path