feat(containers): git-deploy fails when containers don't start; run a named compose file or Dockerfile #10

Merged
thelion merged 2 commits from fix/git-deploy-verify into main 2026-11-06 14:56:52 +00:00
Owner
  • Fix: podman-compose 1.0 exits 0 even when podman run fails (a missing env_file, a bad image), so a broken deploy reported success. git-deploy now fails when compose printed a failed step, when no container came up, or when one has already exited with an error (with its last log lines).
  • Missing .env: a compose file that reads a .env the folder doesn't have stops before compose, with needs_env, so the portal can ask for the settings.
  • Run modes: mode/file choose between auto (as before), a named compose file, or building a named Dockerfile. A built Dockerfile gets the folder's .env.
  • Tests: the real script against a local repo, covering compose failure, a dead container, a missing .env, both modes, a missing file, and bad paths.

🤖 Generated with Claude Code

- **Fix:** podman-compose 1.0 exits 0 even when `podman run` fails (a missing env_file, a bad image), so a broken deploy reported success. git-deploy now fails when compose printed a failed step, when no container came up, or when one has already exited with an error (with its last log lines). - **Missing .env:** a compose file that reads a .env the folder doesn't have stops before compose, with `needs_env`, so the portal can ask for the settings. - **Run modes:** `mode`/`file` choose between auto (as before), a named compose file, or building a named Dockerfile. A built Dockerfile gets the folder's .env. - **Tests:** the real script against a local repo, covering compose failure, a dead container, a missing .env, both modes, a missing file, and bad paths. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
podman-compose 1.0 exits 0 even when podman run fails (a missing env_file,
a bad image), so a broken deploy looked fine. git-deploy now fails when
compose printed a failed step, when no container came up, or when one has
already exited with an error (with its last log lines). A compose file that
reads a .env the folder doesn't have stops before compose with needs_env,
so the portal can ask for the settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(containers): git-deploy can run a named compose file or build a named Dockerfile
Some checks failed
CI / test (pull_request) Successful in 1m48s
CI / release (pull_request) Failing after 0s
46bb22bbef
mode auto (as before), compose (the compose file at file) or dockerfile
(build the Dockerfile at file, from the repo root). A built Dockerfile now
also gets the folder's .env when there is one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ircforever/shells-config!10
No description provided.