busybox/.drone.yml

53 lines
971 B
YAML
Raw Normal View History

2019-06-22 22:25:52 +00:00
---
kind: pipeline
name: build-test-publish
platform:
os: linux
arch: amd64
steps:
- name: build
image: spritsail/docker-build
pull: always
settings:
use_cache: true
2018-03-16 16:11:54 +00:00
repo: busybox-dev
2017-06-30 21:59:26 +00:00
2019-06-22 22:25:52 +00:00
- name: test
image: busybox-dev
pull: never
commands:
- set -ex
- ldconfig -p
- "test -f /lib/libc-*.so"
- nslookup cloudflare.com
- "test $(date +%Z) = UTC"
- test $(echo This is a test string | md5sum | cut -f1 -d\ | tee /dev/stderr) = b584c39f97dfe71ebceea3fdb860ed6c
2017-06-30 21:59:26 +00:00
2019-06-22 22:25:52 +00:00
- name: publish
pull: always
image: spritsail/docker-publish
settings:
2018-03-16 16:11:54 +00:00
from: busybox-dev
repo: spritsail/busybox
2018-07-09 12:45:24 +00:00
tags:
2019-06-22 22:25:52 +00:00
- latest
- "%label io.spritsail.version.busybox"
environment:
DOCKER_PASSWORD:
from_secret: docker_password
DOCKER_USERNAME:
from_secret: docker_username
when:
branch:
- master
event:
- promote
---
kind: signature
hmac: 91a213eb8dd33d761da3dabb4fb6d4b05bdbf55ea47ba40c1e9770a5dafbcecb
2018-03-16 16:11:54 +00:00
2019-06-22 22:25:52 +00:00
...