Files
poc-deployment/.woodpecker/deploy.yaml
T

26 lines
841 B
YAML
Raw Normal View History

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]