-
Notifications
You must be signed in to change notification settings - Fork 25
104 lines (98 loc) · 3.02 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
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, cassandra]
steps:
- uses: actions/[email protected]
- name: lint ${{ matrix.dockerfile_default }}
uses: hadolint/[email protected]
with:
dockerfile: kubernetes/${{ matrix.dockerfile_default }}/Dockerfile
verbose: true
dockerfile_application:
runs-on: ubuntu-latest
strategy:
matrix:
dockerfile_application:
[
consumer-activemq-quarkus,
consumer-hazelcast-quarkus,
consumer-kafka-quarkus,
consumer-rabbitmq-quarkus,
consumer-redis-quarkus,
converter-kafka-quarkus,
converter-rabbitmq-quarkus,
jaxrs-activemq-quarkus,
jaxrs-cassandra-quarkus,
jaxrs-grpc-quarkus,
jaxrs-hazelcast-quarkus,
jaxrs-kafka-quarkus,
jaxrs-memcached-quarkus,
jaxrs-mongodb-quarkus,
jaxrs-mysql-quarkus,
jaxrs-postgres-quarkus,
jaxrs-rabbitmq-quarkus,
jaxrs-redis-quarkus,
producer-kafka-quarkus,
randompublish-quarkus,
scheduled-quarkus,
server-grpc-quarkus,
]
steps:
- uses: actions/[email protected]
- name: lint ${{ matrix.dockerfile_application }}
uses: hadolint/[email protected]
with:
dockerfile: application/${{ matrix.dockerfile_application }}/src/main/docker/Dockerfile.jvm
verbose: true
ignore: DL3038,DL3041
dockerfile_monitoring:
runs-on: ubuntu-latest
strategy:
matrix:
dockerfile_monitoring: [jenkins]
steps:
- uses: actions/[email protected]
- name: lint ${{ matrix.dockerfile_monitoring }}
uses: hadolint/[email protected]
with:
dockerfile: kubernetes/monitoring/${{ matrix.dockerfile_monitoring }}/Dockerfile
verbose: true
dockerfile_ab:
runs-on: ubuntu-latest
strategy:
matrix:
dockerfile_ab: [ab]
steps:
- uses: actions/[email protected]
- name: lint ${{ matrix.dockerfile_ab }}
uses: hadolint/[email protected]
with:
dockerfile: kubernetes/monitoring/test/${{ matrix.dockerfile_ab }}/Dockerfile
verbose: true
dockerfile_postmannewman:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: lint ${{ matrix.dockerfile_postmannewman }}
uses: hadolint/[email protected]
with:
dockerfile: kubernetes/monitoring/test/postmannewman/quarkus/Dockerfile
verbose: true