Fix Woodpecker event name: deployment, not deploy
ci/woodpecker/push/woodpecker Pipeline was successful

Caught from the linter warnings on the first real pipeline run (#1) — the
production-promotion step's event filter used \`deploy\`, an invalid event
name, so it would never have matched Woodpecker's actual deploy-button
event (\`deployment\`) and the production step would have silently never
run. Staging's own deploy (a push-triggered step) was unaffected and
verified working on that same run.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017DUU6CnxECCDeqDNYJgr5x
This commit is contained in:
2026-09-29 15:49:44 -05:00
co-authored by Claude Sonnet 5
parent d847a0f255
commit 7fbe53f025
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -5,8 +5,8 @@
# Supabase project — never shares data with production). Production is
# never touched automatically — promoting to it is a manual "Deploy" button
# click on a main-branch pipeline run in the Woodpecker UI (Woodpecker's
# deploy event), which is why deploy-production is gated on `event: deploy`
# rather than `event: push`.
# deployment event), which is why deploy-production is gated on
# `event: deployment` rather than `event: push`.
#
# Debian-based node image (not Alpine) for every step: the Supabase CLI's
# downloaded binary has had musl/Alpine compatibility issues in the past.
@@ -58,7 +58,7 @@ steps:
- name: deploy-production
image: node:22-bookworm
when:
- event: deploy
- event: deployment
branch: main
evaluate: 'CI_PIPELINE_DEPLOY_TARGET == "production"'
environment:
+1 -1
View File
@@ -121,7 +121,7 @@ revisited and simplified to auto-deploy staging instead.
**Actual flow**: any push (any branch) runs lint + typecheck, then
auto-deploys to a shared staging environment — no button needed. Production
is never touched automatically; promoting to it is a manual **Deploy**
button click (Woodpecker's built-in deploy event) on a `main`-branch
button click (Woodpecker's built-in `deployment` event) on a `main`-branch
pipeline run, typing `production` as the deploy target
(`$CI_PIPELINE_DEPLOY_TARGET`). Requires **"Allow deployments"** enabled in
the repo's Woodpecker project settings.