mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 10:47:51 +00:00
Bump hadolint to 2.12.0 and use matrix for all Dockerfiles (#125131)
* Bump hadolint to 2.12.0 and use matrix for all Dockerfiles * Fix * Disable fail fast
This commit is contained in:
parent
5965d8d503
commit
d12c6f89d2
25
.github/workflows/ci.yaml
vendored
25
.github/workflows/ci.yaml
vendored
@ -429,17 +429,28 @@ jobs:
|
|||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pre-commit run --show-diff-on-failure --hook-stage manual codespell --all-files
|
pre-commit run --show-diff-on-failure --hook-stage manual codespell --all-files
|
||||||
|
|
||||||
|
lint-hadolint:
|
||||||
|
name: Check ${{ matrix.file }}
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
needs:
|
||||||
|
- info
|
||||||
|
- pre-commit
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
file:
|
||||||
|
- Dockerfile
|
||||||
|
- Dockerfile.dev
|
||||||
|
steps:
|
||||||
|
- name: Check out code from GitHub
|
||||||
|
uses: actions/checkout@v4.1.7
|
||||||
- name: Register hadolint problem matcher
|
- name: Register hadolint problem matcher
|
||||||
run: |
|
run: |
|
||||||
echo "::add-matcher::.github/workflows/matchers/hadolint.json"
|
echo "::add-matcher::.github/workflows/matchers/hadolint.json"
|
||||||
- name: Check Dockerfile
|
- name: Check ${{ matrix.file }}
|
||||||
uses: docker://hadolint/hadolint:v1.18.2
|
uses: docker://hadolint/hadolint:v2.12.0
|
||||||
with:
|
with:
|
||||||
args: hadolint Dockerfile
|
args: hadolint ${{ matrix.file }}
|
||||||
- name: Check Dockerfile.dev
|
|
||||||
uses: docker://hadolint/hadolint:v1.18.2
|
|
||||||
with:
|
|
||||||
args: hadolint Dockerfile.dev
|
|
||||||
|
|
||||||
base:
|
base:
|
||||||
name: Prepare dependencies
|
name: Prepare dependencies
|
||||||
|
Loading…
x
Reference in New Issue
Block a user