From 30c6118871c874f890fa22d4ba6863924f4b5040 Mon Sep 17 00:00:00 2001 From: Mark Zaslavskiy Date: Fri, 26 Jul 2024 12:40:16 +0300 Subject: [PATCH] added hadolint check to 5_prototype_analysis.yml --- .github/workflows/5_prototype_analysis.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/5_prototype_analysis.yml b/.github/workflows/5_prototype_analysis.yml index 7d78609..aeb10d2 100644 --- a/.github/workflows/5_prototype_analysis.yml +++ b/.github/workflows/5_prototype_analysis.yml @@ -14,6 +14,22 @@ jobs: name: Check out current commit with: fetch-depth: 0 + + - name: There are at least one Dockerfile + run: | + if ! find ./ | grep -q 'Dockerfile$' + then + echo "::error:: Не найдены файлы с названием Dockerfile." + exit 1 + fi + + - name: Lint Dockerfile + uses: hadolint/hadolint-action@v3.1.0 + with: + dockerfile: Dockerfile + recursive: true + failure-threshold: error + override-error: DL3006, DL3000, DL3007, DL3008, DL3009, DL3013, DL3016, DL3018, DL3020, DL3028, DL3037, DL3047, DL4001, DL4003, DL4004 - name: Build docker-compose run: |