busybox/.drone.yml

33 lines
1.2 KiB
YAML
Raw Normal View History

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:
- 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'
- 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
2018-07-09 12:45:24 +00:00
tags:
- 'latest'
2018-08-24 15:12:03 +00:00
- '%label io.spritsail.version.busybox'
2018-03-16 16:11:54 +00:00
notify:
image: spritsail/notify
2018-03-16 16:11:54 +00:00
when: { status: [ success, failure ] }
secrets: [ webhook_url, notify_token ]