Repository navigation
ci(deploy-dev2): build the crawlproof.com image on GitHub; dev2 only pulls it - #470
Merged
Merged
Conversation
…pulls it The deploy workflow builds the Dockerfile on the Actions runner and pushes ghcr.io/profullstack/crawlproof-web:<sha>. ops/selfhost/server/deploy-app.sh gains IMAGE_REPO mode: it reads the job's short-lived GITHUB_TOKEN from ssh stdin before the deploy gate, pulls the tag, runs compose up --no-build, pins the running image as crawlproofcom-app:rollback and returns to it (no rebuild) if health fails. - build args are the three public NEXT_PUBLIC_* values (repository variables) - NEXT_SERVER_ACTIONS_ENCRYPTION_KEY is no longer a build arg: Next 16 reads it from the environment at run time first, and app.env has it - .env.* added to .dockerignore; dispatch refs are validated - the ops/selfhost copies are synced with what runs on dev2 (deploy gate, vault sync, mem limits, networks) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ThreatCrush Security Scan55 finding(s) HIGH/CRITICAL: 3 | MEDIUM: 34 | LOW: 18
…and 5 more. Full results in the Security tab. Snippets are redacted; ThreatCrush never prints matched credential material. |
| # Secrets from logicsrc (same as the shared dev2 template): VAULT=<project>--<env> | ||
| # in deploy.env; every deploy overlays the vault onto app.env before building. | ||
| if [ -z "${VAULT:-}" ] && [ -f "$ROOT/deploy.env" ]; then | ||
| eval "$(grep -E '^(VAULT|VAULT_TEAM|VAULT_SKIP)=' "$ROOT/deploy.env" || true)" |
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.
The deploy workflow builds the Dockerfile on the Actions runner and pushes
ghcr.io/profullstack/crawlproof-web:. ops/selfhost/server/deploy-app.sh gains
IMAGE_REPO mode: it reads the job's short-lived GITHUB_TOKEN from ssh stdin before
the deploy gate, pulls the tag, runs compose up --no-build, pins the running image
as crawlproofcom-app:rollback and returns to it (no rebuild) if health fails.
from the environment at run time first, and app.env has it
vault sync, mem limits, networks)
Verification plan: a build-only dispatch (deploy=false) on this branch first, then dev2's site dir is switched to IMAGE_REPO mode (backups *.bak-20261123-prebuilt), then this merges and the push deploy is watched with a 2 s process sampler on dev2 (zero build processes), site 200 and the running image's revision label = merge sha. Depends on profullstack/cli-tools#275 (merged).
🤖 Generated with Claude Code