From 4d0d3ede7fb18e6b23b8294c40e9bdc4848b2ecf Mon Sep 17 00:00:00 2001 From: Ali Afsharzadeh Date: Mon, 25 Nov 2024 16:14:33 +0330 Subject: [PATCH] Use hadolint github action instead of manual installation --- .github/workflows/ci.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index adf4732..95577ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,15 +15,9 @@ jobs: - name: Check out the codebase. uses: actions/checkout@v2 - - name: Install hadolint. - run: | - sudo curl -L https://github.com/hadolint/hadolint/releases/download/v$HADOLINT_VERSION/hadolint-$(uname -s)-$(uname -m) -o /usr/local/bin/hadolint - sudo chmod 755 /usr/local/bin/hadolint - env: - HADOLINT_VERSION: 2.8.0 - - - name: Run hadolint. - run: hadolint --ignore DL3003 --ignore DL3018 Dockerfile + - uses: hadolint/hadolint-action@v3.1.0 + with: + ignore: DL3018 build: name: Build and test docker