-
Notifications
You must be signed in to change notification settings - Fork 89
45 lines (43 loc) · 1.22 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
name: Dockerfile Linting
# Run the test suite on pushes (incl. merges) to master and dev
# Run the test suite when a PR is opened, pushed to, or reopened
on:
push:
branches:
- dev
- master
paths:
- deploy/docker/seqr/Dockerfile
- hail_search/deploy/Dockerfile
- vlm/deploy/Dockerfile
- .hadolint.yaml
- .docker-compose.yaml
- .github/workflows/docker-lint.yaml
pull_request:
types: [opened, synchronize, reopened]
branches:
- dev
- master
paths:
- deploy/docker/seqr/Dockerfile
- hail_search/deploy/Dockerfile
- vlm/deploy/Dockerfile
- .hadolint.yaml
- .docker-compose.yaml
- .github/workflows/docker-lint.yaml
jobs:
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Validate docker compose
run: docker compose -f docker-compose.yml config
- uses: hadolint/hadolint-action@v1.5.0
with:
dockerfile: deploy/docker/seqr/Dockerfile
- uses: hadolint/hadolint-action@v1.5.0
with:
dockerfile: hail_search/deploy/Dockerfile
- uses: hadolint/hadolint-action@v1.5.0
with:
dockerfile: vlm/deploy/Dockerfile