Commit 76a3f33e authored by Kevin Daudt's avatar Kevin Daudt

docker-image: add linting job for Dockerfiles

Use the hadolint docker container to lint Dockerfiles. DL3018 is ignored
because pinning versions does not make a lot of sense.
parent a854a61b
Pipeline #5130 passed with stage
in 14 seconds
......@@ -5,10 +5,17 @@ image: alpinelinux/docker-cli:latest
printf "$DOCKER_PASSWORD" | docker login -u $DOCKER_USER --password-stdin
stages:
- verify
- build
- upload
- manifest
lint:
stage: verify
image: hadolint/hadolint
script:
- hadolint --ignore DL3018 Dockerfile
.build:
stage: build
script:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment