containers/.woodpecker/build.yaml

42 lines
1.1 KiB
YAML
Raw Normal View History

2025-06-29 03:09:33 +02:00
when:
- event: manual
- event: tag
- event: push
2025-06-29 03:14:57 +02:00
matrix:
CONTAINER_NAME:
- aiosmtpd
- git
- pnpm
- pnpm-deb
- podman
- python-git
- uv
- uv-geo
2025-06-29 03:09:33 +02:00
steps:
container_build_publish:
image: quay.io/podman/stable:latest
# Caution: This image is built daily. It might fill up your image store quickly.
#pull: true
volumes:
- containers:/var/lib/containers
- uv-cache:/uv-cache
- pnpm:/root/.local/share/pnpm
# Fill in the trusted checkbox in Woodpecker's settings as well
privileged: true
environment:
UV_CACHE_DIR: /uv-cache
UV_LINK_MODE: copy
registry: code.philo.ydns.eu
org: philorg
registry_token:
from_secret: registry_token
commands:
# Login at the registry
- podman login -u __token__ --password $registry_token $registry
# Build the container images
2025-06-29 03:14:57 +02:00
- podman build --volume=/var/lib/containers:/var/lib/containers --tag $registry/$org/${CONTAINER_NAME}:latest -f Containerfile.${CONTAINER_NAME}
2025-06-29 03:09:33 +02:00
# Push the image
2025-06-29 03:14:57 +02:00
- podman push $registry/$org/${CONTAINER_NAME}:latest