From c4df1e7385de9c6bef5fe1e4c1dd9796d31f720e Mon Sep 17 00:00:00 2001 From: Max Mehl Date: Fri, 18 Sep 2026 20:23:32 +0200 Subject: [PATCH] fix: split into push-seed step and deploy step per separate when filters --- .woodpecker/deploy.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.woodpecker/deploy.yaml b/.woodpecker/deploy.yaml index 5714f48..054a9fc 100644 --- a/.woodpecker/deploy.yaml +++ b/.woodpecker/deploy.yaml @@ -1,8 +1,16 @@ 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 "Deployment requested:"' - 'echo " ARTIFACT=$ARTIFACT"' - 'echo " TARGET=$TARGET"' - test -n "$ARTIFACT" || (echo "ERROR - ARTIFACT param missing" && exit 1) @@ -10,6 +18,8 @@ steps: - 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] + event: [deployment, manual, push]