Skip to content

ci: make production deploy manual-only (remove push:main auto-deploy)#105

Closed
jeffersonBastos wants to merge 1 commit into
developfrom
ci/no-auto-deploy-on-main
Closed

ci: make production deploy manual-only (remove push:main auto-deploy)#105
jeffersonBastos wants to merge 1 commit into
developfrom
ci/no-auto-deploy-on-main

Conversation

@jeffersonBastos

Copy link
Copy Markdown
Contributor

Problem

deploy.yml auto-triggers on push: main. On the push path the skip_schema_drop input is empty, so the workflow runs DROP SCHEMA IF EXISTS "programmatic_orders" CASCADE and re-indexes from scratch — hours of downtime / empty data for the live instance. So merging develop → main would destroy the currently-synced production state.

Change

Remove the push: main trigger. Deploys become manual-only via workflow_dispatch (Actions → Run workflow), where skip_schema_drop=true can preserve indexing progress.

Effect

  • Merge develop → main (for code review / handover) no longer touches production.
  • Deploy the final version explicitly, when ready, with control over schema-drop.

Since the workflow file in the merged commit no longer has the push trigger, the merge-to-main itself will not fire a deploy.

🤖 Generated with Claude Code

Merging to main previously auto-triggered deploy.yml, which (on the push
path, with no skip_schema_drop input) drops the `programmatic_orders`
schema and re-indexes from scratch — taking the synced production
instance offline for hours.

Remove the `push: main` trigger so deploys are explicit-only via
workflow_dispatch. This lets us merge develop -> main for code review
without disturbing the live, fully-synced instance; the final version is
then deployed manually (with skip_schema_drop=true to preserve progress).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jeffersonBastos

Copy link
Copy Markdown
Contributor Author

Applied directly to develop as commit 8af2465 (cherry-picked). The push: main trigger is now removed on develop, so this PR is redundant. Closing.

@jeffersonBastos jeffersonBastos deleted the ci/no-auto-deploy-on-main branch June 17, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant