-
Notifications
You must be signed in to change notification settings - Fork 25
77 lines (71 loc) · 2.48 KB
/
dockerfile-lint.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Dockerfile Lint
on:
push:
branches:
- master
paths:
- "kubernetes/**"
- "!kubernetes/bin/**"
- ".github/workflows/dockerfile-lint.yml"
pull_request:
paths:
- "kubernetes/**"
- "!kubernetes/bin/**"
- ".github/workflows/dockerfile-lint.yml"
jobs:
dockerfile_default:
runs-on: ubuntu-latest
strategy:
matrix:
dockerfile_default: [mysql, postgres, mongodb, rabbitmq, nginx, openliberty, spring]
steps:
- uses: actions/checkout@v2
- name: lint ${{ matrix.dockerfile_default }}
uses: brpaz/hadolint-action@v1.5.0
with:
dockerfile: kubernetes/${{ matrix.dockerfile_default }}/Dockerfile
dockerfile_application:
runs-on: ubuntu-latest
strategy:
matrix:
dockerfile_application: [jaxrs-memcached-quarkus, jaxrs-rabbitmq-quarkus, consumer-rabbitmq-quarkus, jaxrs-mongodb-quarkus, consumer-activemq-quarkus, jaxrs-mysql-quarkus, randompublish-quarkus,
jaxrs-activemq-quarkus, scheduled-quarkus, jaxrs-postgres-quarkus, jaxrs-hazelcast-quarkus, consumer-hazelcast-quarkus, jaxrs-redis-quarkus, consumer-redis-quarkus]
steps:
- uses: actions/checkout@v2
- name: lint ${{ matrix.dockerfile_application }}
uses: brpaz/hadolint-action@v1.5.0
with:
dockerfile: application/${{ matrix.dockerfile_application }}/src/main/docker/Dockerfile.jvm
dockerfile_monitoring:
runs-on: ubuntu-latest
strategy:
matrix:
dockerfile_monitoring: [jenkins]
steps:
- uses: actions/checkout@v2
- name: lint ${{ matrix.dockerfile_monitoring }}
uses: brpaz/hadolint-action@v1.5.0
with:
dockerfile: kubernetes/monitoring/${{ matrix.dockerfile_monitoring }}/Dockerfile
dockerfile_ab:
runs-on: ubuntu-latest
strategy:
matrix:
dockerfile_ab: [ab]
steps:
- uses: actions/checkout@v2
- name: lint ${{ matrix.dockerfile_ab }}
uses: brpaz/hadolint-action@v1.5.0
with:
dockerfile: kubernetes/monitoring/test/${{ matrix.dockerfile_ab }}/Dockerfile
dockerfile_postmannewman:
runs-on: ubuntu-latest
strategy:
matrix:
dockerfile_postmannewman: [quarkus, openliberty]
steps:
- uses: actions/checkout@v2
- name: lint ${{ matrix.dockerfile_postmannewman }}
uses: brpaz/hadolint-action@v1.5.0
with:
dockerfile: kubernetes/monitoring/test/postmannewman/${{ matrix.dockerfile_postmannewman }}/Dockerfile