hello-ci/.drone.yml
Christoph Honal c0e1ec4418
Some checks failed
continuous-integration/drone/push Build is failing
argh
2020-02-13 22:10:37 +01:00

39 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

kind: pipeline
name: default
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock
steps:
- name: build
image: docker
environment:
DOCKER_USER:
from_secret: docker_user
DOCKER_PASSWORD:
from_secret: docker_password
commands:
- mkdir /root/.docker
- mkdir /root/.docker/cli-plugins
- 'echo "{\"experimental\": \"enabled\"}" > /root/.docker/config.json'
- wget -quiet -O /root/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.3.1/buildx-v0.3.1.linux-amd64
- chmod a+x /root/.docker/cli-plugins/docker-buildx
- docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
- docker buildx create --use --name crosscomp
- docker buildx inspect --bootstrap
- docker login --username $DOCKER_USER --password $DOCKER_PASSWORD registry.chrz.de:443
- docker buildx build --output=type=image,push=true --progress tty -t registry.chrz.de:443/hello-ci:latest-dev .
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 ]