hello-ci/.drone.yml
Christoph Honal 00cc68576e
Some checks failed
continuous-integration/drone/push Build is failing
test
2020-02-13 19:58:07 +01:00

37 lines
1.1 KiB
YAML

kind: pipeline
name: default
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock
steps:
- name: build
image: alexviscreanu/buildx
environment:
DOCKER_USER:
from_secret: docker_user
DOCKER_PASSWORD:
from_secret: docker_password
commands:
- docker login --username $DOCKER_USER --password $DOCKER_PASSWORD registry.chrz.de:443
- docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
- docker buildx create --use --name crosscomp
- docker buildx inspect --bootstrap
- docker image ls
- docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --output=type=image,push=false --progress tty -t registry.chrz.de:443/hello-ci:latest-multi .
- docker image ls
- docker buildx imagetools inspect registry.chrz.de:443/hello-ci:latest-multi
volumes:
- name: docker_socket
path: /var/run/docker.sock
- name: notify
image: drillster/drone-email
settings:
host: smtp
port: 25
skip_verify: true
from: drone@chrz.de
when:
status: [ success, failure ]