mirror of
https://github.com/hadolint/hadolint-action.git
synced 2026-07-13 12:01:39 +00:00
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 54c9adbab1 | |||
| 0ef98d9a5c | |||
| 1a139ce6cc | |||
| 4b5806eb9c | |||
| e977686583 | |||
| 67d715bb13 | |||
| 48c4120377 | |||
| e81a8de9db | |||
| 68a2276a3c | |||
| eeab5ede16 | |||
| 169ddcf265 | |||
| d51839a6b5 |
@@ -14,7 +14,7 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
container: pipelinecomponents/hadolint:0.10.1
|
container: pipelinecomponents/hadolint:0.10.1
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Run hadolint
|
- name: Run hadolint
|
||||||
run: hadolint Dockerfile
|
run: hadolint Dockerfile
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: ["lint"]
|
needs: ["lint"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: docker build -t $TEST_IMAGE_NAME .
|
run: docker build -t $TEST_IMAGE_NAME .
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: build-test
|
needs: build-test
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Run integration test 1
|
- name: Run integration test 1
|
||||||
uses: ./
|
uses: ./
|
||||||
@@ -96,7 +96,7 @@ jobs:
|
|||||||
needs: integration-tests
|
needs: integration-tests
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: cycjimmy/semantic-release-action@v2
|
- uses: cycjimmy/semantic-release-action@v3
|
||||||
with:
|
with:
|
||||||
extra_plugins: |
|
extra_plugins: |
|
||||||
@semantic-release/git
|
@semantic-release/git
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM hadolint/hadolint:v2.9.3-debian
|
FROM ghcr.io/hadolint/hadolint:v2.12.0-debian
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ Add the following step to your workflow configuration:
|
|||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: hadolint/hadolint-action@v2.0.0
|
- uses: hadolint/hadolint-action@v2.1.0
|
||||||
with:
|
with:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
```
|
```
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@ inputs:
|
|||||||
output-file:
|
output-file:
|
||||||
required: false
|
required: false
|
||||||
description: 'The path where to save the linting results to'
|
description: 'The path where to save the linting results to'
|
||||||
default:
|
default: "/dev/stdout"
|
||||||
|
|
||||||
# standart hadolint options:
|
# standart hadolint options:
|
||||||
no-color:
|
no-color:
|
||||||
|
|||||||
+4
-1
@@ -44,7 +44,10 @@ if [ -n "$HADOLINT_OUTPUT" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
RESULTS="${RESULTS//$'\\n'/''}"
|
RESULTS="${RESULTS//$'\\n'/''}"
|
||||||
echo "::set-output name=results::$RESULTS"
|
|
||||||
|
echo "results<<EOF" >> $GITHUB_OUTPUT
|
||||||
|
echo "${RESULTS}" >> $GITHUB_OUTPUT
|
||||||
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
{ echo "HADOLINT_RESULTS<<EOF"; echo "$RESULTS"; echo "EOF"; } >> $GITHUB_ENV
|
{ echo "HADOLINT_RESULTS<<EOF"; echo "$RESULTS"; echo "EOF"; } >> $GITHUB_ENV
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user