mirror of
https://github.com/PostHog/posthog.git
synced 2024-12-01 04:12:23 +01:00
27 lines
742 B
YAML
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 }}'
|