mirror of
https://github.com/hadolint/hadolint-action.git
synced 2026-07-13 12:01:39 +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 LICENSE README.md problem-matcher.json /
|
||||||
COPY hadolint.sh /usr/local/bin/hadolint.sh
|
COPY hadolint.sh /usr/local/bin/hadolint.sh
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
[](http://commitizen.github.io/cz-cli/)
|
[](http://commitizen.github.io/cz-cli/)
|
||||||
[](https://github.com/semantic-release/semantic-release?style=for-the-badge)
|
[](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
|
## Usage
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ Add the following step to your workflow configuration:
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: brpaz/hadolint-action@v1.2.1
|
- uses: hadolint/hadolint-action@v1.3.1
|
||||||
with:
|
with:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
```
|
```
|
||||||
|
|||||||
+9
-1
@@ -7,7 +7,15 @@
|
|||||||
TMP_FOLDER=$(mktemp -d -p .)
|
TMP_FOLDER=$(mktemp -d -p .)
|
||||||
cp /problem-matcher.json "${TMP_FOLDER}"
|
cp /problem-matcher.json "${TMP_FOLDER}"
|
||||||
chmod -R a+rX "${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"
|
echo "::add-matcher::${TMP_FOLDER}/problem-matcher.json"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"problemMatcher": [
|
"problemMatcher": [
|
||||||
{
|
{
|
||||||
"owner": "hadolint",
|
"owner": "brpaz/hadolint-action",
|
||||||
"pattern": [
|
"pattern": [
|
||||||
{
|
{
|
||||||
"regexp": "(.*)\\:(\\d+)\\s(.*)",
|
"regexp": "(.*)\\:(\\d+)\\s(.*)",
|
||||||
|
|||||||
Reference in New Issue
Block a user