Skip to content

Fix CI execution conditions: pull request + push to main (#41) #80

Fix CI execution conditions: pull request + push to main (#41)

Fix CI execution conditions: pull request + push to main (#41) #80

Workflow file for this run

---
name: Lint
"on":
push:
branches:
- main
pull_request:
branches:
- "*"
workflow_dispatch: {}
jobs:
build:
name: Lint
runs-on: ubuntu-22.04
env:
# renovate datasource: docker, depName: hadolint/hadolint
hadolint-version: 2.12.0
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Create dist
run: |
npm install
npm run dist
- name: Lint Dockerfile
run: docker run --rm -i hadolint/hadolint:${{ env.hadolint-version }} < Dockerfile
- name: Check if build left artifacts
run: git diff --exit-code