Switch to a buildx drone plugin and build multi-platform for intel and ARM #106

Open
jade wants to merge 1 commits from build_for_arm into main
Owner

I need an ARM build to run this on a Raspberry Pi server. The Dockerfile looks like it should support the multi-platform build fine. I've chosen only to add linux/arm64 as a target (on top of the default AMD64) so this will support modern Pis' running a 64 bit operating system (typical on a Pi v 4 or 5).

I don't know how to test this drone pipeline from the PR. It only triggers when there's a release tag, and since it writes to the container repo that's for the best. In the past, doing this sort of thing, I find that sometimes I get the setup wrong and it takes a few tries (it'll either build or it wont though).

Also, I'm relying on a drone plugin for the docker buildx code: https://github.com/drone-plugins/drone-buildx
It provides the same interface as the default docker plugin, with the ability to specify platforms, keeping it nice and simple. This plugin does appear to be maintained, but has open PRs on it, include CVE's. Still, if we were to use the manual command-based approach that would also be true, and we'd be unlikely to make updates at all.

I need an ARM build to run this on a Raspberry Pi server. The Dockerfile looks like it should support the multi-platform build fine. I've chosen only to add linux/arm64 as a target (on top of the default AMD64) so this will support modern Pis' running a 64 bit operating system (typical on a Pi v 4 or 5). I don't know how to test this drone pipeline from the PR. It only triggers when there's a release tag, and since it writes to the container repo that's for the best. In the past, doing this sort of thing, I find that sometimes I get the setup wrong and it takes a few tries (it'll either build or it wont though). Also, I'm relying on a drone plugin for the docker buildx code: https://github.com/drone-plugins/drone-buildx It provides the same interface as the default docker plugin, with the ability to specify platforms, keeping it nice and simple. This plugin does appear to be maintained, but has open PRs on it, include CVE's. Still, if we were to use the manual command-based approach that would also be true, and we'd be unlikely to make updates at all.
jade added 1 commit 2026-11-30 02:16:30 +00:00
Switch to a buildx drone plugin and build multi-platform for intel and ARM
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
fd58c70586
jade requested review from moritz 2026-11-30 02:17:30 +00:00
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin build_for_arm:build_for_arm
git checkout build_for_arm
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coop-cloud/backup-bot-two#106