ci: auto-deploy pipeline for the dev branch (build → smoke test → deploy to cluster container) - #28
Draft
jlocala1 wants to merge 4 commits into
Draft
ci: auto-deploy pipeline for the dev branch (build → smoke test → deploy to cluster container)#28jlocala1 wants to merge 4 commits into
jlocala1 wants to merge 4 commits into
Conversation
Clones main ci.yml's build steps (Node 22, corepack pnpm, ui submodule), then tars a runtime-only release (server/dist, client/dist, manifests), unpacks it clean, installs server prod deps, boots, and curls /api/providers. Delivery step lands once the cluster container is up.
…rollback) Unpacks a deploy-dev.yml tarball into releases/<name>/, wires shared state (artipods, .env), installs server prod deps, flips current, and healthchecks — rolling back to the previous release on failure. Keeps the two newest releases. Rehearsed locally against the real CI artifact: deploy and rollback paths both verified.
scp the tarball + release.sh over SSH (deploy key in repo secrets) and run the install on the box; a final curl verifies the public URL. The box-side script keeps its own healthcheck + auto-rollback.
The ui build is ~6 of the ~8 run minutes but only changes when the gitlink moves; on a cache hit the install+build steps are skipped.
jlocala1
force-pushed
the
ci/dev-deploy-pipeline
branch
from
August 3, 2026 20:34
cb769a2 to
42c4131
Compare
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.
DRAFT — becomes active once a
devbranch exists on this repo.This is the pipeline behind the live dev instance at https://pulseclip-dev2.os.mieweb.org (Doug's "GitHub action on container on dev branch" ask, built 07-24). On every push to
dev:scripts/deploy/release.sh— versioned releases, shared state (artipods/.env) survives deploys, healthcheck with automatic rollback to the previous releaseCurrently running from my fork's
dev(which carries #24/#25/#26 + #20 for content). To adopt on this repo: createdev, add the fourDEPLOY_*Actions secrets, merge this.