Skip to content

fix(deploy): build images for linux/arm64, not amd64 - #407

Merged
godamongstmen897 merged 1 commit into
mainfrom
fix/deploy-arm64-platform
Sep 12, 2026
Merged

fix(deploy): build images for linux/arm64, not amd64#407
godamongstmen897 merged 1 commit into
mainfrom
fix/deploy-arm64-platform

Conversation

@godamongstmen897

Copy link
Copy Markdown
Contributor

One-line change to .github/workflows/deploy.yml.

           # Must match your EC2 instance architecture.
           # t3.* = linux/amd64. t4g.* (Graviton) = linux/arm64.
-          platforms: linux/amd64
+          platforms: linux/arm64

The target instance is a t4g.small — AWS Graviton, so arm64, not x86.

This is worth fixing before the first deploy rather than after, because the failure mode is misleading: an amd64 image pushes to ECR without complaint, and only fails at container start with exec format error. That reads like a corrupt or broken image, not an architecture mismatch, so it tends to send you looking in the wrong place.

The adjacent comment already documented the mapping and remains accurate, so it is untouched.

Verification

python3 -c "import yaml; yaml.safe_load(open('.github/workflows/deploy.yml'))"
  parses OK

git diff --numstat1 1 .github/workflows/deploy.yml. Nothing else changed; ci.yml untouched.

A repo-wide grep confirms linux/amd64 now appears nowhere in this repo except that explanatory comment, and platforms: appears exactly once.

Note the frontend needs the same change — escrow-frontend has a matching PR. Both must land before the first deploy, or the two images end up on different architectures.

🤖 Generated with Claude Code

The target EC2 instance is a t4g.small, which is AWS Graviton — arm64.
An amd64 image pushes to ECR without complaint and then fails at
container start with "exec format error", which reads like a corrupt
image rather than an architecture mismatch.

The adjacent comment already documented the mapping (t3.* = amd64,
t4g.* = arm64) and stays accurate, so it is left as is.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 12, 2026 13:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@godamongstmen897
godamongstmen897 merged commit 4813d1f into main Sep 12, 2026
2 checks passed
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.

2 participants