From 62053a1048880ee161bd1a83c2ebd60c993dd214 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Mon, 5 May 2025 15:32:47 +0200 Subject: [PATCH] Use uv image build with same python version --- .woodpecker/lint.yaml | 2 +- .woodpecker/tests.yaml | 2 +- Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.woodpecker/lint.yaml b/.woodpecker/lint.yaml index 9cb7390..fb52023 100644 --- a/.woodpecker/lint.yaml +++ b/.woodpecker/lint.yaml @@ -5,7 +5,7 @@ when: steps: - name: python linting - image: ghcr.io/astral-sh/uv:latest + image: ghcr.io/astral-sh/uv:python3.11-alpine commands: - uv sync --group ci - uv run --no-sync -- check src/ diff --git a/.woodpecker/tests.yaml b/.woodpecker/tests.yaml index 1f39e38..95092f6 100644 --- a/.woodpecker/tests.yaml +++ b/.woodpecker/tests.yaml @@ -15,7 +15,7 @@ services: steps: - name: python tests - image: python:3.11-alpine + image: ghcr.io/astral-sh/uv:python3.11-alpine environment: DJANGO_SETTINGS_MODULE: "newsreader.conf.ci" DJANGO_SECRET_KEY: sekrit diff --git a/Dockerfile b/Dockerfile index 056de7c..a92172f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ USER newsreader COPY --chown=newsreader:newsreader uv.lock pyproject.toml /app/ -COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv +COPY --from=ghcr.io/astral-sh/uv:python3.11-alpine /usr/local/bin/uv /bin/uv RUN --mount=type=cache,target=$HOME/.cache/uv \ uv sync --frozen --no-default-groups --no-install-project