mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-07-02 21:52:51 +08:00
chore(CI): add hadolint checker
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
8da3787c97
commit
d2cea88132
17
.github/workflows/lint.yml
vendored
17
.github/workflows/lint.yml
vendored
@ -2,11 +2,7 @@ name: Run Lint
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
@ -23,3 +19,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
args: --verbose
|
args: --verbose
|
||||||
|
|
||||||
|
- uses: hadolint/hadolint-action@v3.0.0
|
||||||
|
name: hadolint for Dockerfile.linux.amd64
|
||||||
|
with:
|
||||||
|
dockerfile: docker/Dockerfile.linux.amd64
|
||||||
|
- uses: hadolint/hadolint-action@v3.0.0
|
||||||
|
name: hadolint for Dockerfile.linux.arm64
|
||||||
|
with:
|
||||||
|
dockerfile: docker/Dockerfile.linux.arm64
|
||||||
|
- uses: hadolint/hadolint-action@v3.0.0
|
||||||
|
name: hadolint for Dockerfile.linux.arm
|
||||||
|
with:
|
||||||
|
dockerfile: docker/Dockerfile.linux.arm
|
||||||
|
2
.hadolint.yaml
Normal file
2
.hadolint.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
ignored:
|
||||||
|
- DL3018
|
Loading…
Reference in New Issue
Block a user