Compare commits
5 commits
Author | SHA1 | Date | |
---|---|---|---|
763e9aa70b | |||
d1c9bc1c01 | |||
9a948fde8e | |||
e5e6c029fa | |||
1190718e98 |
2 changed files with 10 additions and 6 deletions
|
@ -11,7 +11,7 @@ steps:
|
||||||
image: code.philo.ydns.eu/philorg/woodpecker-buildah
|
image: code.philo.ydns.eu/philorg/woodpecker-buildah
|
||||||
settings:
|
settings:
|
||||||
registry: code.philo.ydns.eu
|
registry: code.philo.ydns.eu
|
||||||
repository: philorg/test-woodpecker
|
repository: philorg/test-woodpecker-python
|
||||||
tags: ${CI_COMMIT_SHA}
|
tags: ${CI_COMMIT_SHA}
|
||||||
architectures: amd64
|
architectures: amd64
|
||||||
context: Containerfile
|
context: Containerfile
|
||||||
|
@ -21,7 +21,7 @@ steps:
|
||||||
from_secret: registry_password
|
from_secret: registry_password
|
||||||
|
|
||||||
sync:
|
sync:
|
||||||
image: ghcr.io/astral-sh/uv:python3.13-alpine
|
image: code.philo.ydns.eu/philorg/uv
|
||||||
volumes:
|
volumes:
|
||||||
- uv-cache:/uv-cache
|
- uv-cache:/uv-cache
|
||||||
environment:
|
environment:
|
||||||
|
@ -31,7 +31,7 @@ steps:
|
||||||
- uv sync
|
- uv sync
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: ghcr.io/astral-sh/uv:python3.13-alpine
|
image: code.philo.ydns.eu/philorg/uv
|
||||||
volumes:
|
volumes:
|
||||||
- uv-cache:/uv-cache
|
- uv-cache:/uv-cache
|
||||||
environment:
|
environment:
|
||||||
|
@ -42,7 +42,7 @@ steps:
|
||||||
- uv cache prune --ci
|
- uv cache prune --ci
|
||||||
|
|
||||||
push_python:
|
push_python:
|
||||||
image: ghcr.io/astral-sh/uv:python3.13-alpine
|
image: code.philo.ydns.eu/philorg/uv
|
||||||
environment:
|
environment:
|
||||||
OWNER: philorg
|
OWNER: philorg
|
||||||
REGISTRY_URL: https://code.philo.ydns.eu
|
REGISTRY_URL: https://code.philo.ydns.eu
|
||||||
|
|
|
@ -4,9 +4,13 @@ FROM docker.io/python:alpine
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
# Sync the project into a new environment, using the frozen lockfile
|
|
||||||
WORKDIR /app
|
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"]
|
ENTRYPOINT ["foo"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue