forked from EA31337/EA31337
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 820 Bytes
/
lint-docker.yml
File metadata and controls
38 lines (36 loc) · 820 Bytes
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
---
name: Lint Docker
# yamllint disable-line rule:truthy
on:
pull_request:
paths-ignore:
- '**/*.json'
- '**/*.md'
- '**/*.txt'
- '.git*'
- '.yamllint'
- 'LICENSE'
push:
paths:
- '**/*.y?ml'
- '.github/workflows/lint-docker.yml'
- 'Dockerfile'
jobs:
Hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: brpaz/hadolint-action@master
with:
dockerfile: Dockerfile
DockerCompose:
runs-on: ubuntu-latest
needs: Hadolint
steps:
- uses: actions/checkout@v1
- name: Validates Docker Compose files
run: |
find . -name docker-compose.yml -print |
while read file; do
docker-compose -f $file config -q || exit 1
done