Skip to content

Add (or update) GitHub Action (GHA) files and related config. #1

Add (or update) GitHub Action (GHA) files and related config.

Add (or update) GitHub Action (GHA) files and related config. #1

Workflow file for this run

---
name: Dockerfile Quality Assistance
on:
# This event occurs when there is activity on a pull request. The workflow
# will be run against the commits, after merge to the target branch (main).
- pull_request:
branches: [ main ]
paths:
- 'Dockerfile'
types: [ opened, reopened, synchronize ]
# This event occurs when there is a push to the repository.
- push:
paths:
- 'Dockerfile'
# Allow manually triggering the workflow.
- workflow_dispatch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
# Needed to allow the "concurrency" section to cancel a workflow run.
actions: write
jobs:
# 03.quality.docker.lint.yml
lint-dockerfile:
name: Dockerfile Linting
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: docker://pipelinecomponents/hadolint
with:
args: >-
hadolint