protonmail-bridge/.drone.yml
Michael Gibson f76ec38345
All checks were successful
continuous-integration/drone/push Build is passing
Use BuildX to cross-compile for ARM.
2020-07-10 21:03:04 -05:00

33 lines
No EOL
1.1 KiB
YAML

---
kind: pipeline
type: docker
name: default
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock
steps:
- name: build
image: alexviscreanu/buildx
commands:
- docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
- 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
REGISTRY_PASSWORD:
from_secret: registry_password
#trigger:
# event:
# - tag