mirror of
https://github.com/hadolint/hadolint-action.git
synced 2026-07-06 00:21: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
|
||||
container: pipelinecomponents/hadolint:0.10.1
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Run hadolint
|
||||
run: hadolint Dockerfile
|
||||
|
||||
@@ -23,7 +23,7 @@ jobs:
|
||||
runs-on: ubuntu-20.04
|
||||
needs: ["lint"]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build Docker image
|
||||
run: docker build -t $TEST_IMAGE_NAME .
|
||||
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
runs-on: ubuntu-20.04
|
||||
needs: build-test
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Run integration test 1
|
||||
uses: ./
|
||||
@@ -96,7 +96,7 @@ jobs:
|
||||
needs: integration-tests
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: cycjimmy/semantic-release-action@v2
|
||||
- uses: cycjimmy/semantic-release-action@v3
|
||||
with:
|
||||
extra_plugins: |
|
||||
@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 hadolint.sh /usr/local/bin/hadolint.sh
|
||||
|
||||
@@ -15,7 +15,7 @@ Add the following step to your workflow configuration:
|
||||
```yml
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: hadolint/hadolint-action@v2.0.0
|
||||
- uses: hadolint/hadolint-action@v2.1.0
|
||||
with:
|
||||
dockerfile: Dockerfile
|
||||
```
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ inputs:
|
||||
output-file:
|
||||
required: false
|
||||
description: 'The path where to save the linting results to'
|
||||
default:
|
||||
default: "/dev/stdout"
|
||||
|
||||
# standart hadolint options:
|
||||
no-color:
|
||||
|
||||
+4
-1
@@ -44,7 +44,10 @@ if [ -n "$HADOLINT_OUTPUT" ]; then
|
||||
fi
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user