Skip to content

Commit d69a5b7

Browse files
committed
Lint Dockerfile files with Hadolint
1 parent 0d82193 commit d69a5b7

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM alpine:3.11.3
1+
FROM alpine:3.17.3
22

3-
RUN apk add --no-cache libxml2-utils
3+
RUN apk add --no-cache libxml2-utils=2.10.4-r0

.github/workflows/continuous-integration.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,18 @@ jobs:
8282
with:
8383
args: "xmllint --noout --schema vendor/squizlabs/php_codesniffer/phpcs.xsd lib/Doctrine/ruleset.xml"
8484

85+
lint-dockerfile:
86+
name: "Lint Dockerfile files with Hadolint"
87+
runs-on: "ubuntu-22.04"
88+
89+
steps:
90+
- uses: "actions/checkout@v3"
91+
92+
- name: "Lint Dockerfile"
93+
uses: "hadolint/[email protected]"
94+
with:
95+
dockerfile: ".docker/validate-against-schema/Dockerfile"
96+
8597
test-report:
8698
name: "Test report"
8799

0 commit comments

Comments
 (0)