Skip to content

Deploy script: recreate the build agent when its image changed - #115

Merged
Kaliumhexacyanoferrat merged 1 commit into
mainfrom
fix/deploy-recreate-agent
Oct 12, 2026
Merged

Kaliumhexacyanoferrat merged 1 commit into
mainfrom
fix/deploy-recreate-agent

Conversation

@Kaliumhexacyanoferrat

Copy link
Copy Markdown
Collaborator

A deploy that rebuilt genhttp-agent:latest ended with

Restarting the build agent
 ✔ Container genhttplambda-egress-proxy-1 Running   0.0s
 ✔ Container genhttplambda-agent-1        Running   0.0s

Verifying
  FAIL build agent's runner is older than genhttp-agent:latest - deploy again to recreate it

The check was right: the script had found the runner's image to differ from the one just built, yet docker compose up -d agent egress-proxy did not recreate the containers - compose does not reliably notice an image built by an earlier, separate compose build. Deploying again, as the message advises, would rebuild from cache and hit the same no-op.

The recreate is now --force-recreate. It is only reached once the image is known to have changed and the running builds have finished, so a deploy where the agent did not change still recreates nothing.

To bring the server in line now: up -d --force-recreate agent egress-proxy with the three compose files (no build-* containers running), then genhttp-deploy --check.

🤖 Generated with Claude Code

A deploy that rebuilt the agent's image left the runner on the old one:
`compose up -d` reported the containers as Running and recreated nothing,
so the check after it failed - and deploying again would do the same.
The script already knows the image changed when it gets there, so the
recreate is forced.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Kaliumhexacyanoferrat
Kaliumhexacyanoferrat merged commit 3837599 into main Oct 12, 2026
3 checks passed
@Kaliumhexacyanoferrat
Kaliumhexacyanoferrat deleted the fix/deploy-recreate-agent branch October 12, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant