busybox/.drone.yml

43 lines
1.6 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
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
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}}