2017-06-30 21:59:26 +00:00
pipeline :
build :
image : docker
2017-09-15 16:14:10 +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 build --no-cache --pull -t busybox-dev .
2017-06-30 21:59:26 +00:00
test :
image : docker
2017-09-15 16:14:10 +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 :
image : docker
secrets : [ DOCKER_USER, DOCKER_PASS ]
2017-09-15 16:14:10 +00:00
when :
event : [ push, tag, deployment]
volumes :
- /var/run/docker.sock:/var/run/docker.sock
2017-06-30 21:59:26 +00:00
commands :
2017-08-09 13:23:28 +00:00
- docker login -u $DOCKER_USER -p $DOCKER_PASS
2017-09-15 16:14:10 +00:00
- docker tag busybox-dev adamant/busybox:latest
- docker tag busybox-dev adamant/busybox:1.1
2017-08-09 16:52:38 +00:00
- docker push adamant/busybox
2017-09-15 16:14:10 +00:00
- docker rmi busybox-dev adamant/busybox
2017-08-10 01:23:37 +00:00
downstream :
image : plugins/downstream
2017-09-13 22:19:42 +00:00
when :
event : [ push, tag, deployment]
2017-08-10 01:23:37 +00:00
secrets : [ DOWNSTREAM_TOKEN ]
server : https://drone.adam-ant.co.uk
fork : true
repositories :
2017-08-10 15:19:13 +00:00
- Adam-Ant/docker-busybox@libressl
2017-08-10 01:23:37 +00:00
when :
event : [ push, tag, deployment]
status : [ success ]