gha: add hadolint job to check Dockerfile

This commit is contained in:
peaceiris 2019-09-08 21:18:27 +09:00
parent 2d9de755b5
commit d8740dd53b
1 changed files with 9 additions and 0 deletions

View File

@ -19,3 +19,12 @@ jobs:
docker build . --file Dockerfile --tag ${DOCKER_IMAGE} &&
docker run ${DOCKER_IMAGE} version ||
(echo -e "\e[31m[${GITHUB_WORKFLOW}] failed to build\e[m" && exit 1)
hadolint:
runs-on: macOS-10.14
steps:
- uses: actions/checkout@master
- name: hadolint
run: |
brew install hadolint
hadolint ./Dockerfile