Skip to content

Commit

Permalink
Lint Dockerfile files with Hadolint
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys committed Apr 24, 2023
1 parent 3446dbe commit e08b9a9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .docker/validate-against-schema/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM alpine:3.11.3
FROM alpine:3.17.3

RUN apk add --no-cache libxml2-utils
RUN apk add --no-cache libxml2-utils=2.10.4-r0
28 changes: 28 additions & 0 deletions .github/workflows/ci-dockerfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

name: "Continuous Integration for Dockerfile files"

on:
pull_request:
paths:
- ".docker/**/*"
push:
branches:
- "*.*.x"
paths:
- ".docker/**/*"
schedule:
- cron: "0 17 * * *"

jobs:
lint-dockerfile:
name: "Lint Dockerfile files with Hadolint"
runs-on: "ubuntu-22.04"

steps:
- uses: "actions/checkout@v3"

- name: "Lint Dockerfile"
uses: "hadolint/hadolint-action@v3.1.0"
with:
dockerfile: ".docker/validate-against-schema/Dockerfile"

0 comments on commit e08b9a9

Please sign in to comment.