Skip to content

Commit 0ed4da5

Browse files
author
tchapi
committed
chore
1 parent 49380b1 commit 0ed4da5

File tree

1 file changed

+30
-4
lines changed

1 file changed

+30
-4
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@ on:
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

1310
env:
1411
COMPOSER_ALLOW_SUPERUSER: '1'
@@ -17,6 +14,35 @@ env:
1714
ADMIN_PASSWORD: test
1815

1916
jobs:
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+
uses: hadolint/[email protected]
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

0 commit comments

Comments
 (0)