mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-11-09 05:10:07 +00:00
27 lines
528 B
YAML
27 lines
528 B
YAML
|
name: Lint Dockerfile
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
paths:
|
||
|
- resources/Dockerfile
|
||
|
pull_request:
|
||
|
paths:
|
||
|
- resources/Dockerfile
|
||
|
|
||
|
jobs:
|
||
|
hadolint:
|
||
|
name: Run Hadolint Dockerfile Linter
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Checkout code
|
||
|
uses: actions/checkout@v3
|
||
|
|
||
|
- name: Lint Dockerfile
|
||
|
uses: hadolint/hadolint-action@master
|
||
|
with:
|
||
|
dockerfile: ./resources/Dockerfile
|
||
|
format: tty
|
||
|
no-fail: false
|
||
|
verbose: true
|
||
|
failure-threshold: info
|