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
notify :
2018-05-27 11:54:11 +00:00
image : spritsail/notify
2018-03-16 16:11:54 +00:00
when : { status : [ success, failure ] }
2018-05-27 11:54:11 +00:00
secrets : [ webhook_url, notify_token ]