Compare commits
8 commits
Author | SHA1 | Date | |
---|---|---|---|
763e9aa70b | |||
d1c9bc1c01 | |||
9a948fde8e | |||
e5e6c029fa | |||
1190718e98 | |||
9dd00e3deb | |||
caedb1fe52 | |||
d4dcbac8d9 |
6 changed files with 38 additions and 11 deletions
|
@ -7,11 +7,11 @@ depends_on:
|
|||
|
||||
steps:
|
||||
container_build_release_push:
|
||||
image: docker.io/maltegrosse/woodpecker-buildah:0.0.12
|
||||
#image: code.philo.ydns.eu/philorg/woodpecker-buildah
|
||||
#image: docker.io/maltegrosse/woodpecker-buildah:0.0.12
|
||||
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
|
||||
|
|
|
@ -6,7 +6,7 @@ when:
|
|||
|
||||
steps:
|
||||
sync:
|
||||
image: ghcr.io/astral-sh/uv:python3.13-alpine
|
||||
image: code.philo.ydns.eu/philorg/uv
|
||||
volumes:
|
||||
- uv-cache:/uv-cache
|
||||
environment:
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -20,7 +20,7 @@ source = "uv-dynamic-versioning"
|
|||
packages = ["src/test_woodpecker_ci"]
|
||||
|
||||
[dependency-groups]
|
||||
dev = ["httpx>=0.28.1", "pytest>=8.4.1"]
|
||||
dev = ["dunamai>=1.24.1", "httpx>=0.28.1", "pytest>=8.4.1"]
|
||||
|
||||
[tool.uv-dynamic-versioning]
|
||||
style = "semver"
|
||||
|
|
10
src/test_woodpecker_ci/__init__.py
Normal file
10
src/test_woodpecker_ci/__init__.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
import importlib.metadata
|
||||
|
||||
try:
|
||||
from dunamai import Version, Style
|
||||
|
||||
__version__ = Version.from_git().serialize(style=Style.SemVer, dirty=True)
|
||||
except ImportError:
|
||||
# __name__ can be used if the package name is the same
|
||||
# as the directory. Otherwise, specify it explicitely.
|
||||
__version__ = importlib.metadata.version(__name__)
|
15
uv.lock
generated
15
uv.lock
generated
|
@ -33,6 +33,18 @@ wheels = [
|
|||
{ url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dunamai"
|
||||
version = "1.24.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "packaging" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/54/22/7f46b0146ef614cd6f80e4bcb188dabe33e90b4e0af028e16f597f5826ad/dunamai-1.24.1.tar.gz", hash = "sha256:3aa3348f77242da8628b23f11e89569343440f0f912bcef32a1fa891cf8e7215", size = 45616, upload-time = "2025-05-09T13:48:46.417Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/1d/d6/6ed8b439906ca2e88d65bddf002e21239678aca6001d8fb82e8e2b196245/dunamai-1.24.1-py3-none-any.whl", hash = "sha256:4370e406d8ce195fc4b066b5c326bfa9adb269c4b8719b4e4fd90b63a2144bf7", size = 26654, upload-time = "2025-05-09T13:48:45.442Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "h11"
|
||||
version = "0.16.0"
|
||||
|
@ -142,11 +154,11 @@ wheels = [
|
|||
|
||||
[[package]]
|
||||
name = "test-woodpecker-ci"
|
||||
version = "0.1.0"
|
||||
source = { editable = "." }
|
||||
|
||||
[package.dev-dependencies]
|
||||
dev = [
|
||||
{ name = "dunamai" },
|
||||
{ name = "httpx" },
|
||||
{ name = "pytest" },
|
||||
]
|
||||
|
@ -155,6 +167,7 @@ dev = [
|
|||
|
||||
[package.metadata.requires-dev]
|
||||
dev = [
|
||||
{ name = "dunamai", specifier = ">=1.24.1" },
|
||||
{ name = "httpx", specifier = ">=0.28.1" },
|
||||
{ name = "pytest", specifier = ">=8.4.1" },
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue