Feature/add symlink and sql flows#5
Draft
leglesslizard wants to merge 38 commits into
Draft
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an “Atomic Deploy” flow for WordPress deployments that can (a) run SQL migrations against a copied table prefix and then switch wp-config.php to the new prefix, and (b) atomically re-point plugin/theme symlinks to a release directory for fast rollbacks. This is implemented via new reusable workflow(s), a composite action that runs the remote swap script over SSH, and migration script templates, with README documentation updates.
Changes:
- Added
templates/migrations/swap.sh+templates/migrations/migrate.shto support prefix-copy migrations and symlink swapping during deploys. - Added
actions/swap-and-migratecomposite action and.github/workflows/atomic-deploy.yamlreusable workflow to run the remote deploy step and send notifications. - Expanded
README.mddocumentation for Atomic Deploy, rsync/FTP deploys, and templates.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
templates/migrations/swap.sh |
Remote deploy script: preflight, migration/prefix-swap, symlink swap, and release pruning logic. |
templates/migrations/migrate.sh |
Migration runner that applies pending SQL files and records them in a tracking table. |
actions/swap-and-migrate/action.yml |
Composite action that SSHes to the server to run swap.sh, then emails on failure based on exit codes. |
.github/workflows/atomic-deploy.yaml |
Reusable workflow wiring SSH setup + swap-and-migrate action with SMTP/notification secrets. |
README.md |
Documents the new Atomic Deploy flow and updates other workflow/action documentation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When merging in we'll need the following to get notifications to work: