treetrail-frontend/.woodpecker/build.yaml

51 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2025-06-28 00:47:43 +02:00
when:
- event: manual
- event: tag
#depends_on:
#- test
steps:
npm:
2025-06-28 03:19:46 +02:00
image: code.philo.ydns.eu/philorg/pnpm-deb
2025-06-28 00:47:43 +02:00
environment:
ORG: philorg
REGISTRY_TOKEN:
from_secret: registry_token
volumes:
- pnpm:/root/.local/share/pnpm
commands:
- pnpm install --frozen-lockfile
- pnpm set "//code.philo.ydns.eu/api/packages/$ORG/npm/:_authToken=$REGISTRY_TOKEN"
- pnpm publish --no-git-checks
failure: ignore
2025-06-28 03:40:22 +02:00
build:
image: code.philo.ydns.eu/philorg/pnpm-deb
commands:
- pnpm build
2025-06-28 00:47:43 +02:00
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
- pnpm:/root/.local/share/pnpm
# Fill in the trusted checkbox in Woodpecker's settings as well
privileged: true
environment:
registry: code.philo.ydns.eu
org: philorg
2025-06-28 03:19:46 +02:00
container_name: treetrail-frontend
2025-06-28 00:47:43 +02:00
registry_token:
from_secret: registry_token
commands:
# Login at the registry
- podman login -u __token__ --password $registry_token $registry
# Build the container image
- podman build --volume=/var/lib/containers:/var/lib/containers --tag $registry/$org/$container_name:latest --tag $registry/$org/$container_name:$CI_COMMIT_TAG .
# Push the image
- podman push $registry/$org/$container_name:latest
- podman push $registry/$org/$container_name:$CI_COMMIT_TAG