2017-06-30 21:59:26 +00:00
pipeline :
build :
2018-03-16 16:11:54 +00:00
image : spritsail/docker-build
volumes : [ '/var/run/docker.sock:/var/run/docker.sock' ]
repo : busybox-dev
2017-06-30 21:59:26 +00:00
test :
image : docker
2018-03-16 16:11:54 +00:00
volumes : [ '/var/run/docker.sock:/var/run/docker.sock' ]
2017-06-30 21:59:26 +00:00
commands :
2017-09-15 16:14:10 +00:00
- docker run --rm busybox-dev /bin/sh -xec 'true'
- docker run --rm busybox-dev /bin/sh -xec 'test -f /lib/libc-*.so'
- docker run --rm busybox-dev /bin/sh -xec 'ldconfig -p'
- docker run --rm busybox-dev /bin/sh -xec 'nslookup google.com'
2017-09-19 22:31:28 +00:00
- test "$(docker run --rm busybox-dev /bin/sh -xec 'date +%Z')" = 'UTC'
- test "$(docker run --rm busybox-dev /bin/sh -xec 'echo This is a test string | md5sum | cut -f1 -d\ ' | tee /dev/stderr)" = 'b584c39f97dfe71ebceea3fdb860ed6c'
2017-06-30 21:59:26 +00:00
publish :
2018-03-16 16:11:54 +00:00
image : spritsail/docker-publish
when : { branch: [ master ], event : [ push, tag, deployment ] }
volumes : [ '/var/run/docker.sock:/var/run/docker.sock' ]
secrets : [ docker_username, docker_password, microbadger_token ]
from : busybox-dev
repo : spritsail/busybox
2017-08-10 01:23:37 +00:00
downstream :
image : plugins/downstream
2018-03-16 16:11:54 +00:00
when : { status: [ success ], event : [ push, tag, deployment ] }
secrets : [ downstream_token ]
server : https://drone.spritsail.io
2018-03-28 14:07:58 +00:00
wait : true
2017-08-10 01:23:37 +00:00
fork : true
repositories :
2018-03-16 16:11:54 +00:00
- spritsail/busybox@libressl
notify :
image : appleboy/drone-telegram
when : { status : [ success, failure ] }
secrets : [ telegram_token, telegram_to ]
message : |
*{{repo.owner}}/{{repo.name}} [ {{commit.branch}}]* : Build #{{build.number}}: *{{uppercase build.status}}*
{{build.link}}