Skip to content

Commit

Permalink
Merge pull request #109 from guoard/hadolint
Browse files Browse the repository at this point in the history
Use hadolint github action instead of manual installation
  • Loading branch information
hryamzik authored Nov 26, 2024
2 parents fd2027f + 4d0d3ed commit f888734
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,9 @@ jobs:
- name: Check out the codebase.
uses: actions/checkout@v4

- 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
Expand Down

0 comments on commit f888734

Please sign in to comment.