Allow Github Actions executions from contributions PR #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: lint-dockerfile | |
# trigger on any push | |
# but not on master or tags | |
# and only for Dockerfile related modifications | |
on: | |
pull_request: | |
types: [ synchronize, opened, reopened, ready_for_review ] | |
push: | |
tags-ignore: | |
- "**" | |
branches: | |
- "**" | |
- "!master" | |
paths: | |
- "Dockerfile" | |
- "hadolint.yaml" | |
- ".github/workflows/lint-dockerfile.yml" | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Lint Dockerfile | |
uses: brpaz/hadolint-action@v1.5.0 | |
with: | |
dockerfile: "Dockerfile" | |
config: "hadolint.yaml" | |