From e5533dee731558f566b9057e5f785d0adafc5068 Mon Sep 17 00:00:00 2001 From: make-github-pseudonymous-again <5165674+make-github-pseudonymous-again@users.noreply.github.com> Date: Mon, 20 May 2024 18:38:26 +0200 Subject: [PATCH] :gear: config(ci): Lint `Dockerfile` using `dockerfilelint`. This fixes #969. --- .github/workflows/ci:lint-dockerfile.yml | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci:lint-dockerfile.yml diff --git a/.github/workflows/ci:lint-dockerfile.yml b/.github/workflows/ci:lint-dockerfile.yml new file mode 100644 index 000000000..8fca3905b --- /dev/null +++ b/.github/workflows/ci:lint-dockerfile.yml @@ -0,0 +1,26 @@ +name: ci:lint-dockerfile + +on: + push: + branches: + - main + pull_request: + merge_group: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + + lint: + name: Continuous integration (lint dockerfile) + runs-on: ubuntu-latest + timeout-minutes: 2 + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v4 + + - name: Lint Dockerfile 👕 + run: | + npx dockerfilelint ./Dockerfile