parent
113c0ccd5b
commit
e5d69db0cb
1 changed files with 41 additions and 0 deletions
41
.woodpecker/build.yaml
Normal file
41
.woodpecker/build.yaml
Normal file
|
@ -0,0 +1,41 @@
|
|||
when:
|
||||
- event: manual
|
||||
- event: tag
|
||||
- event: push
|
||||
|
||||
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
|
||||
matrix:
|
||||
container_name:
|
||||
- aiosmtpd
|
||||
- git
|
||||
- pnpm
|
||||
- pnpm-deb
|
||||
- podman
|
||||
- podman-geo
|
||||
- python-git
|
||||
- uv
|
||||
- uv-geo
|
||||
commands:
|
||||
# Login at the registry
|
||||
- podman login -u __token__ --password $registry_token $registry
|
||||
# Build the container images
|
||||
- podman build --volume=/var/lib/containers:/var/lib/containers --tag $registry/$org/${container_name}:latest -f Containerfile.${container_name}
|
||||
# Push the image
|
||||
- podman push $registry/$org/$container_name:latest
|
Loading…
Add table
Add a link
Reference in a new issue