diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml new file mode 100644 index 0000000..fe0b77f --- /dev/null +++ b/.gitea/workflows/lint.yaml @@ -0,0 +1,22 @@ +name: Lint + +on: + pull_request: + branches: [main] + paths: + - 'pkg/Dockerfile' + - 'Dockerfile' + +jobs: + hadolint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + with: + fetch-depth: 0 + + - name: Run hadolint + uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0 + with: + dockerfile: pkg/Dockerfile