Skip to content

Commit 99b196d

Browse files
authored
Merge pull request #316 from phansys/hadolint
Lint Dockerfile files with Hadolint
2 parents 3446dbe + 75c0b44 commit 99b196d

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-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
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
name: "Continuous Integration for Dockerfile files"
4+
5+
on:
6+
pull_request:
7+
paths:
8+
- ".docker/**/*"
9+
- ".github/workflows/ci-dockerfile.yml"
10+
push:
11+
branches:
12+
- "*.*.x"
13+
paths:
14+
- ".docker/**/*"
15+
- ".github/workflows/ci-dockerfile.yml"
16+
schedule:
17+
- cron: "0 17 * * *"
18+
19+
jobs:
20+
lint-dockerfile:
21+
name: "Lint Dockerfile files with Hadolint"
22+
runs-on: "ubuntu-22.04"
23+
24+
steps:
25+
- uses: "actions/checkout@v3"
26+
27+
- name: "Lint Dockerfile"
28+
uses: "hadolint/hadolint-action@v3.1.0"
29+
with:
30+
dockerfile: ".docker/validate-against-schema/Dockerfile"

0 commit comments

Comments
 (0)