26 lines
668 B
YAML
26 lines
668 B
YAML
name: Lint Dockerfiles
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- SmartClinicManagementSystem/**
|
|
push:
|
|
paths:
|
|
- SmartClinicManagementSystem/**
|
|
jobs:
|
|
dockerlint:
|
|
runs-on: node20
|
|
name: Lint Dockerfiles
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }}
|
|
- name: Run hadolint
|
|
uses: hadolint/hadolint-action@v3.3.0
|
|
with:
|
|
dockerfile: ./SmartClinicManagementSystem/app/Dockerfile
|
|
output-file: hadolint.log
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: hadolint.log
|
|
path: hadolint.log |