diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..948a4f1 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,24 @@ +name: Lint +on: [push] +jobs: + markdownlint: + name: markdownlint + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + - name: lint_markdown + uses: docker://avtodev/markdown-lint:v1 + with: + args: './*.md' + ignore: './test/output.md ./test/custom-template-keywords.md ./EXAMPLE_OUTPUT.md' + hadolint: + name: hadolint + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + - name: hadolint + uses: hadolint/hadolint-action@v3.1.0 + with: + dockerfile: Dockerfile diff --git a/.github/workflows/lintmarkdown.yml b/.github/workflows/lintmarkdown.yml deleted file mode 100644 index e9f7721..0000000 --- a/.github/workflows/lintmarkdown.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Markdownlint -on: [push] -jobs: - markdownlint: - name: markdownlint - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v4 - - - name: lint_markdown - uses: docker://avtodev/markdown-lint:v1 - with: - args: './*.md' - ignore: './test/output.md ./test/custom-template-keywords.md ./EXAMPLE_OUTPUT.md' diff --git a/Dockerfile b/Dockerfile index ff05a1e..65bb8be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,24 +1,29 @@ -FROM python:3.13-alpine3.20 as helper +FROM python:3.13-alpine3.20@sha256:c38ead8bcf521573dad837d7ecfdebbc87792202e89953ba8b2b83a9c5a520b6 as helper + +# renovate: datasource=pypi depName=pipenv versioning=pep440 +ENV PIP_ENV_VERSION=2024.0.3 USER root -WORKDIR app +WORKDIR /app COPY Pipfile Pipfile.lock ./ RUN < requirements.txt EOF -FROM python:3.13-alpine3.20 +USER 1000 + +FROM python:3.13-alpine3.20@sha256:c38ead8bcf521573dad837d7ecfdebbc87792202e89953ba8b2b83a9c5a520b6 ARG IMAGE_VERSION=latest ARG COMMIT_SHA=unknown USER root -WORKDIR app +WORKDIR /app COPY reader/ ./reader COPY writer ./writer @@ -26,7 +31,7 @@ COPY stella.py EXAMPLE/style.css ./ COPY --from=helper /app/requirements.txt . RUN <