30 lines
751 B
YAML
30 lines
751 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
volumes:
|
|
- name: docker_socket
|
|
host:
|
|
path: /var/run/docker.sock
|
|
|
|
steps:
|
|
- name: build
|
|
image: docker
|
|
commands:
|
|
- apk add --update curl
|
|
- curl --create-dirs --url https://github.com/docker/buildx/releases/download/v0.3.1/buildx-v0.3.1.linux-amd64 --output ~/.docker/cli-plugins/docker-buildx
|
|
- chmod a+x ~/.docker/cli-plugins/docker-buildx
|
|
- ls -la ~/.docker/cli-plugins
|
|
- docker info
|
|
- docker buildx --progress plain -t dagobert:latest .
|
|
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 ] |