0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-30 19:41:46 +01:00
posthog/.github/workflows/dockerfile-lint.yml
2021-10-18 12:51:46 +00:00

27 lines
742 B
YAML

name: Dockerfile
on:
- pull_request
jobs:
build:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Check if any Dockerfile has changed
id: changed-files
uses: tj-actions/changed-files@v9.3
with:
files: |
**Dockerfile
separator: ' '
- name: Lint changed Dockerfile(s) with Hadolint
uses: jbergstroem/hadolint-gh-action@v1
if: steps.changed-files.outputs.any_changed == 'true'
with:
dockerfile: '${{ steps.changed-files.outputs.all_modified_files }}'