2025-06-20 19:03:22 +02:00
|
|
|
when:
|
2025-06-21 14:52:59 +02:00
|
|
|
- event: manual
|
2025-06-24 11:00:01 +02:00
|
|
|
- event: tag
|
2025-06-20 19:03:22 +02:00
|
|
|
|
2025-06-24 11:16:28 +02:00
|
|
|
depends_on:
|
|
|
|
- test
|
2025-06-24 10:58:42 +02:00
|
|
|
|
2025-06-24 11:14:41 +02:00
|
|
|
steps:
|
|
|
|
# isitatag:
|
|
|
|
# image: ghcr.io/astral-sh/uv:python3.13-alpine
|
|
|
|
# when:
|
|
|
|
# evaluate: '"CI_COMMIT_TAG" in $env'
|
2025-06-24 10:57:18 +02:00
|
|
|
|
2025-06-21 14:52:59 +02:00
|
|
|
sync:
|
2025-06-21 16:31:46 +02:00
|
|
|
image: ghcr.io/astral-sh/uv:python3.13-alpine
|
2025-06-21 17:33:17 +02:00
|
|
|
volumes:
|
2025-06-21 17:41:14 +02:00
|
|
|
- uv-cache:/uv-cache
|
2025-06-21 15:17:58 +02:00
|
|
|
environment:
|
2025-06-21 17:26:47 +02:00
|
|
|
UV_CACHE_DIR: /uv-cache
|
2025-06-21 16:33:44 +02:00
|
|
|
UV_LINK_MODE: copy
|
2025-06-20 19:03:22 +02:00
|
|
|
commands:
|
2025-06-21 16:30:39 +02:00
|
|
|
- uv sync
|
2025-06-24 11:14:41 +02:00
|
|
|
|
2025-06-21 14:52:59 +02:00
|
|
|
build:
|
2025-06-21 18:14:56 +02:00
|
|
|
image: ghcr.io/astral-sh/uv:python3.13-alpine
|
2025-06-21 17:56:31 +02:00
|
|
|
volumes:
|
|
|
|
- uv-cache:/uv-cache
|
|
|
|
environment:
|
|
|
|
UV_CACHE_DIR: /uv-cache
|
|
|
|
UV_LINK_MODE: copy
|
2025-06-21 14:52:59 +02:00
|
|
|
commands:
|
|
|
|
- uv build --wheel
|
2025-06-21 18:02:52 +02:00
|
|
|
- uv cache prune --ci
|
2025-06-24 10:47:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-06-22 01:37:38 +02:00
|
|
|
push_python:
|
2025-06-22 03:31:40 +02:00
|
|
|
# TODO: when git tag
|
2025-06-22 03:18:59 +02:00
|
|
|
image: code.philo.ydns.eu/philorg/twine
|
|
|
|
environment:
|
|
|
|
OWNER: philorg
|
|
|
|
REGISTRY_URL: https://code.philo.ydns.eu
|
|
|
|
USERNAME:
|
2025-06-22 01:37:38 +02:00
|
|
|
from_secret: forgejo_username
|
2025-06-22 03:18:59 +02:00
|
|
|
PASSWORD:
|
2025-06-22 01:37:38 +02:00
|
|
|
from_secret: forgejo_password
|
2025-06-22 03:18:59 +02:00
|
|
|
commands:
|
2025-06-22 03:20:55 +02:00
|
|
|
- twine upload --repository-url $REGISTRY_URL/api/packages/$OWNER/pypi -u $USERNAME -p $PASSWORD --non-interactive dist/*.whl
|
2025-06-24 10:57:18 +02:00
|
|
|
failure: ignore
|
2025-06-22 02:26:42 +02:00
|
|
|
|
2025-06-22 03:31:40 +02:00
|
|
|
# TODO: container
|
2025-06-22 01:37:38 +02:00
|
|
|
# For podman build: see https://woodpecker-ci.org/blog/podman-image-build-sigstore
|
2025-06-21 17:56:31 +02:00
|
|
|
# podman-privileged-test:
|
|
|
|
# image: quay.io/podman/stable
|
|
|
|
# commands:
|
|
|
|
# - echo From https://docs.gitlab.com/runner/executors/kubernetes/use_podman_with_kubernetes/
|
|
|
|
# - podman build . -t playground-bis:testing
|