-
Notifications
You must be signed in to change notification settings - Fork 56
43 lines (38 loc) · 1.39 KB
/
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
on:
push:
branches:
- main
- dev
pull_request:
name: Lint Dockerfiles
jobs:
lint:
runs-on: ubuntu-latest
name: lint-${{ matrix.config.product }}-${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {product: 'product/base', os: 'ubuntu2204'}
- {product: 'product/base', os: 'centos7'}
- {product: 'product/pro', os: 'ubuntu2204'}
- {product: 'product/pro', os: 'centos7'}
- {product: 'workbench', os: 'ubuntu2204'}
- {product: 'connect', os: 'ubuntu2204'}
- {product: 'connect-content-init', os: 'ubuntu2204'}
- {product: 'package-manager', os: 'ubuntu2204'}
- {product: 'r-session-complete', os: 'ubuntu2204'}
- {product: 'workbench-session-init', os: 'ubuntu2204'}
- {product: 'workbench-for-microsoft-azure-ml', os: 'ubuntu2204'}
- {product: 'content/base', os: 'ubuntu1804'}
- {product: 'content/base', os: 'ubuntu2204'}
- {product: 'content/pro', os: 'ubuntu1804'}
- {product: 'content/pro', os: 'ubuntu2204'}
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Run Hadolint
uses: hadolint/[email protected]
with:
dockerfile: ${{ matrix.config.product }}/Dockerfile.${{ matrix.config.os }}
config: ./hadolint.yaml