fix(supervisor): redeploy web app when .env.prod.sops changes
web_code_changed() only checked web/ and Dockerfile, so secret rotations (updated RESEND_API_KEY, etc.) didn't trigger a container redeploy. Added .env.prod.sops to the diff so any committed secret change automatically causes the new .env to be baked into the containers. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -270,9 +270,10 @@ def run_export() -> None:
|
||||
|
||||
|
||||
def web_code_changed() -> bool:
|
||||
"""Check if web app code changed since last deploy (after git pull)."""
|
||||
"""Check if web app code or secrets changed since last deploy (after git pull)."""
|
||||
result = subprocess.run(
|
||||
["git", "diff", "--name-only", "HEAD~1", "HEAD", "--", "web/", "Dockerfile"],
|
||||
["git", "diff", "--name-only", "HEAD~1", "HEAD", "--",
|
||||
"web/", "Dockerfile", ".env.prod.sops"],
|
||||
capture_output=True, text=True, timeout=30,
|
||||
)
|
||||
return bool(result.stdout.strip())
|
||||
|
||||
Reference in New Issue
Block a user