From d8740dd53b8f8c4a9179bb558612a901eb82b803 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Sun, 8 Sep 2019 21:18:27 +0900 Subject: [PATCH] gha: add hadolint job to check Dockerfile --- .github/workflows/push.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 25ef8a3..314821f 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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