diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index ef00013..f328164 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -11,7 +11,7 @@ steps: image: code.philo.ydns.eu/philorg/woodpecker-buildah settings: registry: code.philo.ydns.eu - repository: philorg/test-woodpecker + repository: philorg/test-woodpecker-python tags: ${CI_COMMIT_SHA} architectures: amd64 context: Containerfile @@ -21,7 +21,7 @@ steps: from_secret: registry_password sync: - image: ghcr.io/astral-sh/uv:python3.13-alpine + image: code.philo.ydns.eu/philorg/uv volumes: - uv-cache:/uv-cache environment: @@ -31,7 +31,7 @@ steps: - uv sync build: - image: ghcr.io/astral-sh/uv:python3.13-alpine + image: code.philo.ydns.eu/philorg/uv volumes: - uv-cache:/uv-cache environment: @@ -42,7 +42,7 @@ steps: - uv cache prune --ci push_python: - image: ghcr.io/astral-sh/uv:python3.13-alpine + image: code.philo.ydns.eu/philorg/uv environment: OWNER: philorg REGISTRY_URL: https://code.philo.ydns.eu diff --git a/Containerfile b/Containerfile index 0c139a6..f875859 100644 --- a/Containerfile +++ b/Containerfile @@ -4,9 +4,13 @@ FROM docker.io/python:alpine COPY . /app -# Sync the project into a new environment, using the frozen lockfile WORKDIR /app -RUN --mount=from=ghcr.io/astral-sh/uv:alpine,source=/usr/local/bin/uv,target=/bin/uv uv pip install --system . +# Sync the project into a new environment, using the frozen lockfile +RUN \ + --mount=from=code.philo.ydns.eu/philorg/uv,source=/usr/local/bin/uv,target=/bin/uv \ + --mount=from=code.philo.ydns.eu/philorg/uv,source=/usr/lib/libpcre2-8.so.0,target=/usr/lib/libpcre2-8.so.0 \ + --mount=from=code.philo.ydns.eu/philorg/uv,source=/usr/bin/git,target=/usr/bin/git \ + uv pip install --system . ENTRYPOINT ["foo"]