forked from wtsi-npg/bambi
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.06 KB
/
lint-and-test-build-dockerfile.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
name: "Lint and test-build Dockerfile"
on:
push:
branches:
- '**'
jobs:
lint-docker:
runs-on: ubuntu-latest
continue-on-error: true
defaults:
run:
shell: "bash -l -e -o pipefail {0}"
steps:
- name: "Checkout code"
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Lint Dockerfile"
run: |
cat <<EOT >> .hadolint.yaml
ignored:
- DL3008
EOT
docker run --rm -i -v /"${PWD}"/.hadolint.yaml:/.config/hadolint.yaml ghcr.io/hadolint/hadolint < docker/Dockerfile
build-docker:
runs-on: ubuntu-latest
defaults:
run:
shell: "bash -l -e -o pipefail {0}"
steps:
- name: "Checkout code"
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Docker build"
run: |
set -x
docker build --rm \
--file docker/Dockerfile \
--build-arg HTSLIB_BRANCH=1.18 \
--tag bambi .
docker run bambi bambi --version