aboutsummaryrefslogtreecommitdiff
path: root/tasks/hadolint/task.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/hadolint/task.yml')
-rw-r--r--tasks/hadolint/task.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/tasks/hadolint/task.yml b/tasks/hadolint/task.yml
new file mode 100644
index 0000000..40cf683
--- /dev/null
+++ b/tasks/hadolint/task.yml
@@ -0,0 +1,22 @@
+---
+platform: linux
+image_resource:
+ type: registry-image
+ source:
+ repository: docker.io/hadolint/hadolint
+ tag: latest-debian
+
+inputs:
+ - name: docker-repo
+
+run:
+ path: bash
+ args:
+ - -eufo
+ - pipefail
+ - -c
+ - |
+ hadolint "${DOCKERFILE}"
+
+params:
+ DOCKERFILE: docker-repo/Dockerfile