Skip to content

Commit 0795fd1

Browse files
committed
Add hadolint check
1 parent b469f92 commit 0795fd1

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Build and Smoke Test
1+
name: Validate
22

33
on:
44
pull_request:
55
branches:
66
- master
77

88
jobs:
9-
ci:
9+
build-smoke-test:
1010
timeout-minutes: 30
1111
runs-on: ubuntu-latest
1212
name: ${{ matrix.ghc }}-${{ matrix.deb }}
@@ -24,8 +24,8 @@ jobs:
2424
ghc_minor: '9.2'
2525
steps:
2626
- uses: actions/checkout@v2
27-
- name: docker build [${{ matrix.ghc }}]
28-
uses: nick-invision/retry@v1
27+
- name: build + smoke test [${{ matrix.ghc }}]
28+
uses: nick-invision/retry@v2
2929
with:
3030
timeout_minutes: 8
3131
max_attempts: 3
@@ -39,3 +39,11 @@ jobs:
3939
path: official-images
4040
- name: run official-images tests
4141
run: ./official-images/test/run.sh haskell:${{ matrix.ghc }}-${{ matrix.deb }}
42+
43+
hadolint:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v2
47+
- uses: hadolint/[email protected]
48+
with:
49+
recursive: true

.hadolint.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ignored:
2+
# https://github.com/hadolint/hadolint/wiki/DL3008
3+
# Don't want to micro manage the dependency versions.
4+
- DL3008
5+
# https://github.com/hadolint/hadolint/wiki/DL3003
6+
# Using cd /tmp is a very convenient way to clean up after a step.
7+
- DL3003
8+
# https://github.com/hadolint/hadolint/wiki/DL4006
9+
# The set -eux; pattern is common in many of the official images. It likely is a better approach here.
10+
- DL4006

0 commit comments

Comments
 (0)