Use docker info to get arch

This commit is contained in:
Donal McBreen
2024-08-28 15:50:46 +01:00
parent eab7d3adc5
commit 5f2384f123
7 changed files with 19 additions and 9 deletions

View File

@@ -38,5 +38,5 @@ builder:
readiness_delay: 0
builder:
arch: <%= `uname -m`.strip == "x86_64" ? "arm64" : "amd64" %>
arch: <%= Kamal::Utils.docker_arch == "arm64" ? "amd64" : "arm64" %>
remote: ssh://app@1.1.1.5