-
-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (34 loc) · 982 Bytes
/
dockerfile.yml
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: "Dockerfile"
# Hadolint is going to hurt your feelings!
on: # yamllint disable-line rule:truthy
pull_request:
paths:
- "**/Dockerfile"
- ".hadolint.yaml"
push:
branches:
- "master"
paths:
- "**/Dockerfile"
- ".hadolint.yaml"
workflow_call: null
permissions: {} # yamllint disable-line rule:braces
#permissions: "read-all"
#permissions:
# contents: "read" # Private repositories need read permission
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
hadolint:
name: "🐳 Hadolint"
runs-on: "ubuntu-22.04"
timeout-minutes: 1
steps:
-
name: "Checkout repository"
uses: "actions/checkout@v4.1.5"
-
name: "Check Dockerfiles"
uses: "hadolint/hadolint-action@v3.1.0"