Files
poc-deployment/.woodpecker/deploy.yaml
T
mxmehl c4df1e7385
ci/woodpecker/push/deploy Pipeline was successful
ci/woodpecker/deployment/deploy Pipeline was successful
fix: split into push-seed step and deploy step per separate when filters
2026-09-18 20:23:32 +02:00

26 lines
841 B
YAML

steps:
- name: seed-push-build
image: alpine:3.20
commands:
- echo "No-op push build."
- echo "Exists only so woodpeckerci/plugin-trigger's last-successful"
- echo "lookup (which only matches push-event builds) has a build to find."
when:
event: push
- name: show-deployment-request
image: alpine:3.20
commands:
- 'echo " ARTIFACT=$ARTIFACT"'
- 'echo " TARGET=$TARGET"'
- test -n "$ARTIFACT" || (echo "ERROR - ARTIFACT param missing" && exit 1)
- test -n "$TARGET" || (echo "ERROR - TARGET param missing" && exit 1)
- test -f "hosts/$TARGET" || (echo "ERROR - unknown host alias $TARGET" && exit 1)
- 'echo "Resolved host alias $TARGET:"'
- cat "hosts/$TARGET"
when:
event: [deployment, manual]
when:
event: [deployment, manual, push]