charon icon indicating copy to clipboard operation
charon copied to clipboard

Move linux/arm64 Docker build in pipelines to arm64 machine

Open KaloyanTanev opened this issue 11 months ago • 0 comments

🎯 Problem to be solved

Currently in the github pipelines the Docker images are built for both linux/amd64 and linux/arm64 platforms. However, both of them are on amd64 linux machine, which forces the runner to build the arm64 through qemu virtualization. This results in 6 to 8 times slower build times. Since 30th Jan 2024 github provides Apple silicon chips, which can build natively arm64. Building on those machines should result in much faster CI/CD pipeline.

🛠️ Proposed solution

  • [ ] Investigate if arm64 builds are faster on github macos machine
  • [ ] Split the build step of Docker to 2 different machines - one running on ubuntu-latest, the other running on macos-14

🧪 Tests

  • [ ] Pipeline passes for both platforms
  • [ ] Both images are available on ghcr

👐 Additional acceptance criteria

  • [ ] CI/CD pipeline completion time is considerably less

KaloyanTanev avatar Mar 16 '24 16:03 KaloyanTanev