Use BuildX to cross-compile for ARM.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
17dce093f4
commit
f76ec38345
1 changed files with 25 additions and 15 deletions
40
.drone.yml
40
.drone.yml
|
|
@ -1,23 +1,33 @@
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: tag
|
name: default
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: docker_socket
|
||||||
|
host:
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: alexviscreanu/buildx
|
||||||
settings:
|
commands:
|
||||||
registry: registry.thegibsonhome.net
|
- docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
|
||||||
username:
|
- export BUILDER_ID="crosscomp-$(cat /proc/self/cgroup | head -1 | cut -d '/' -f 3)"
|
||||||
|
- docker buildx create --use --name $BUILDER_ID --driver-opt image=stargate01/buildkit
|
||||||
|
- docker buildx inspect --bootstrap
|
||||||
|
- docker login --username $REGISTRY_USERNAME --password $REGISTRY_PASSWORD registry.thegibsonhome.net
|
||||||
|
- docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --output=type=image,push=true --progress tty -t registry.thegibsonhome.net/protonmail-bridge:latest .
|
||||||
|
- docker buildx rm $BUILDER_ID
|
||||||
|
volumes:
|
||||||
|
- name: docker_socket
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
environment:
|
||||||
|
REGISTRY_USERNAME:
|
||||||
from_secret: registry_username
|
from_secret: registry_username
|
||||||
password:
|
REGISTRY_PASSWORD:
|
||||||
from_secret: registry_password
|
from_secret: registry_password
|
||||||
repo: registry.thegibsonhome.net/protonmail-bridge
|
|
||||||
build_args:
|
#trigger:
|
||||||
- TAG=${DRONE_TAG}
|
# event:
|
||||||
tags:
|
# - tag
|
||||||
- ${DRONE_TAG}
|
|
||||||
- latest
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue