Skip to content

Commit

Permalink
Merge pull request #85 from ZeroGachis:feat/dockerfile-linter
Browse files Browse the repository at this point in the history
feat: add Dockerfile linter workflow
  • Loading branch information
nicolasbriere1 authored Mar 11, 2024
2 parents 202c700 + 8472cf3 commit a9babbe
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/dockerfile-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Dockerfile linter"

on:
workflow_call:
inputs:
dockerfile_path:
required: true
type: string
image_name:
required: true
type: string

jobs:
lint-dockerfile:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: read
actions: read
checks: write
issues: read
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4


- uses: hadolint/[email protected]
with:
dockerfile: ${{ inputs.dockerfile_path }}
output-file: test-result.json
format: json

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
check_name: "DockerFile Linter - ${{ inputs.image_name }}"
files: |
test-result.json

0 comments on commit a9babbe

Please sign in to comment.