-
Notifications
You must be signed in to change notification settings - Fork 29
48 lines (41 loc) · 1.15 KB
/
docker-lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Docker Lint
on:
push:
branches:
- "main"
paths:
- "**/Dockerfile"
- "**/Dockerfile.migrations"
- "**/.dockerignore"
- ".github/workflows/docker-lint.yaml"
pull_request:
branches:
- "main"
paths:
- "**/Dockerfile"
- "**/Dockerfile.migrations"
- "**/.dockerignore"
- ".github/workflows/docker-lint.yaml"
concurrency:
group: docker-lint-${{ github.ref }}
cancel-in-progress: true
jobs:
docker-lint:
runs-on: ubuntu-latest
name: Lint Docker Manifest
permissions:
contents: read
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout Repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
with:
dockerfile: "*Dockerfile*"
recursive: true
config: .hadolint.yaml