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
pull from: build_for_arm
merge into: :main
:main
:build_for_arm
:renovate/docker-29.x
:feature/makeDeleteDefault
:fix-download-oom
:restic-exporter
:cmd-setup-restic-s3
:prom-mon
:feature/dockerfile
:bb2-classic
:feature/selective_paths
:list
:enable-label
:backupbot_revolution
:backup_volumes
:multi_path
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
appletalk
arjan
basebuilder
BornDeleuze (Born Deleuze)
Brooke
carla
cas (Cassowary)
codegod100
coopcloud
cyrnel
dannygroenewegen (Danny Groenewegen)
decentral1se (d1)
dede
devydave
fauno (fauno)
flancian
Frando
hex (Josh Dukes)
iexos
jade (Jade Ambrose)
javielico (Javielico)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
marlon (marlon)
mayel
mirsal
moosemower
moritz
nicksellen (Nick Sellen)
notplants
oxaliq (sorrel)
p4u1 (p4u1)
pau
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
PhiNatalie
renovate-bot (Comrade Renovate Bot)
ripclap
rix
rscmbbng
sef (sef)
simon
sixsmith (Sixsmith)
stevensting (stevensting)
tobias
trav (Trav Fryer)
val (val (he/him))
vaznasty
virtualboys
wolcen (Chris Thompson)
wykwit
xynosis
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/backup-bot-two#106
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.