File tree Expand file tree Collapse file tree 1 file changed +30
-4
lines changed
Expand file tree Collapse file tree 1 file changed +30
-4
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main # Only run on pushes to main
7- paths-ignore :
8- - ' docker/**'
97 pull_request :
10- paths-ignore :
11- - ' docker/**'
8+ # Run on all PRs (no path restrictions)
129
1310env :
1411 COMPOSER_ALLOW_SUPERUSER : ' 1'
1714 ADMIN_PASSWORD : test
1815
1916jobs :
17+ dockerfile-checks :
18+ name : Dockerfile Checks
19+ runs-on : ubuntu-latest
20+ strategy :
21+ matrix :
22+ dockerfile :
23+ - docker/Dockerfile
24+ - docker/Dockerfile-standalone
25+ steps :
26+ - name : Checkout
27+ uses : actions/checkout@v4
28+
29+ - name : Lint with Hadolint
30+ 31+ with :
32+ dockerfile : ${{ matrix.dockerfile }}
33+ failure-threshold : warning
34+
35+ - name : Set up Docker Buildx
36+ uses : docker/setup-buildx-action@v3
37+
38+ - name : Validate Dockerfile syntax
39+ run : |
40+ docker buildx build \
41+ --file ${{ matrix.dockerfile }} \
42+ --platform linux/amd64 \
43+ --check \
44+ .
45+
2046 analyze :
2147 name : Analyze
2248 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments