Skip to content

Commit

Permalink
feat(ci): introduce hadolint
Browse files Browse the repository at this point in the history
For linting of Dockerfile.
  • Loading branch information
nijel committed Jan 20, 2025
1 parent 194a7f6 commit 6c7ed64
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/hadolint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright © Michal Čihař <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0

# This file is maintained in https://github.com/WeblateOrg/meta/
name: Hadolint

on:
push:
branches-ignore:
- deepsource-fix-**
- renovate/**
- weblate
pull_request:

permissions:
contents: read

jobs:
hadolint:

runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
- uses: hadolint/[email protected]
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ RUN curl -LsSf https://astral.sh/uv/${UV_VERSION}/install.sh | env UV_UNMANAGED_
# Install supervisor and gunicorn to /opt/tools
RUN export UV_NO_CACHE=1 && uv venv /opt/tools
COPY --link requirements.txt /opt/tools/src/requirements.txt
# hadolint ignore=SC1091
RUN export UV_NO_CACHE=1 && \
source /opt/tools/bin/activate && \
uv pip install -r /opt/tools/src/requirements.txt

0 comments on commit 6c7ed64

Please sign in to comment.