mirror of
https://github.com/hadolint/hadolint-action.git
synced 2026-07-06 08:31:42 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 473e36ba30 | |||
| edc054086d | |||
| b18c7cf9dc | |||
| 20e70041a2 | |||
| 1623ba6171 |
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM hadolint/hadolint:v1.19.0-alpine
|
||||
FROM hadolint/hadolint:v2.1.0-alpine
|
||||
|
||||
COPY LICENSE README.md problem-matcher.json /
|
||||
COPY hadolint.sh /usr/local/bin/hadolint.sh
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
[](http://commitizen.github.io/cz-cli/)
|
||||
[](https://github.com/semantic-release/semantic-release?style=for-the-badge)
|
||||
|
||||
[](https://github.com/brpaz/hadolint-action/action)
|
||||
[](https://github.com/hadolint/hadolint-action/action)
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -15,7 +15,7 @@ Add the following step to your workflow configuration:
|
||||
|
||||
```yml
|
||||
steps:
|
||||
- uses: brpaz/hadolint-action@v1.2.1
|
||||
- uses: hadolint/hadolint-action@v1.3.1
|
||||
with:
|
||||
dockerfile: Dockerfile
|
||||
```
|
||||
|
||||
+9
-1
@@ -7,7 +7,15 @@
|
||||
TMP_FOLDER=$(mktemp -d -p .)
|
||||
cp /problem-matcher.json "${TMP_FOLDER}"
|
||||
chmod -R a+rX "${TMP_FOLDER}"
|
||||
trap "rm -rf \"${TMP_FOLDER}\"" EXIT
|
||||
|
||||
# After the run has finished we remove the problem-matcher.json from
|
||||
# the repository so we don't leave the checkout dirty. We also remove
|
||||
# the matcher so it won't take effect in later steps.
|
||||
cleanup() {
|
||||
echo "::remove-matcher owner=brpaz/hadolint-action::"
|
||||
rm -rf "${TMP_FOLDER}"
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
echo "::add-matcher::${TMP_FOLDER}/problem-matcher.json"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"problemMatcher": [
|
||||
{
|
||||
"owner": "hadolint",
|
||||
"owner": "brpaz/hadolint-action",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "(.*)\\:(\\d+)\\s(.*)",
|
||||
|
||||
Reference in New Issue
Block a user