feat: Add problem matcher

* Add problem matcher

* Fix loading tar file from artifacts
This commit is contained in:
Arne Jørgensen
2020-12-05 18:34:32 +01:00
committed by GitHub
parent 836016a45f
commit 88386d9893
3 changed files with 22 additions and 2 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
FROM hadolint/hadolint:v1.17.5-alpine
COPY LICENSE README.md /
COPY hadolint.sh /usr/local/bin/hadolint.sh
ENTRYPOINT [ "hadolint" ]
ENTRYPOINT [ "/usr/local/bin/hadolint.sh" ]
Executable
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
echo '::add-matcher::problem-matcher.json'
hadolint "$@"
+15
View File
@@ -0,0 +1,15 @@
{
"problemMatcher": [
{
"owner": "hadolint",
"pattern": [
{
"regexp": "(.*)\\:(\\d+)\\s(.*)",
"file": 1,
"line": 2,
"message": 3
}
]
}
]
}