Skip to content

Commit

Permalink
Merge pull request #1119 from zama-ai/youben11-patch-8
Browse files Browse the repository at this point in the history
feat(ci): select all Dockerfiles for linting automatically
  • Loading branch information
BourgerieQuentin authored Oct 25, 2024
2 parents db0162e + 62463a0 commit 120827d
Showing 1 changed file with 5 additions and 30 deletions.
35 changes: 5 additions & 30 deletions .github/workflows/docker-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,10 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
container:
image: hadolint/hadolint@sha256:27173fe25e062448490a32de410c08491c626a0bef360aa2ce5d5bdd9384b50d #2.12.0-debian
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

- name: Lint Concrete Python
uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
with:
dockerfile: ./docker/Dockerfile.concrete-python
config: ./.hadolint.yaml

- name: Lint Concrete Compiler Env
uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
with:
dockerfile: ./docker/Dockerfile.concrete-compiler-env
config: ./.hadolint.yaml

- name: Lint HPX
uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
with:
dockerfile: ./docker/Dockerfile.hpx-env
config: ./.hadolint.yaml

- name: Lint Cuda118
uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
with:
dockerfile: ./docker/Dockerfile.cuda-118-env
config: ./.hadolint.yaml

- name: Lint Cuda123
uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
with:
dockerfile: ./docker/Dockerfile.cuda-123-env
config: ./.hadolint.yaml
- name: Lint All Dockerfiles (except third_party)
run: hadolint -V `find -name "*Dockerfile*" -not -path "./third_party/*" |xargs `

0 comments on commit 120827d

Please sign in to comment.