Skip to content

Commit

Permalink
feat: Add problem matcher
Browse files Browse the repository at this point in the history
* Add problem matcher

* Fix loading tar file from artifacts
  • Loading branch information
arnested authored Dec 5, 2020
1 parent 836016a commit 88386d9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
5 changes: 5 additions & 0 deletions hadolint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

echo '::add-matcher::problem-matcher.json'

hadolint "$@"
15 changes: 15 additions & 0 deletions problem-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"problemMatcher": [
{
"owner": "hadolint",
"pattern": [
{
"regexp": "(.*)\\:(\\d+)\\s(.*)",
"file": 1,
"line": 2,
"message": 3
}
]
}
]
}

0 comments on commit 88386d9

Please sign in to comment.