Joe Groocock
5274dee8b2
Some checks reported errors
continuous-integration/drone/push Build was killed
53 lines
971 B
YAML
53 lines
971 B
YAML
---
|
|
kind: pipeline
|
|
name: build-test-publish
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: build
|
|
image: spritsail/docker-build
|
|
pull: always
|
|
settings:
|
|
use_cache: true
|
|
repo: busybox-dev
|
|
|
|
- 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
|
|
|
|
- name: publish
|
|
pull: always
|
|
image: spritsail/docker-publish
|
|
settings:
|
|
from: busybox-dev
|
|
repo: spritsail/busybox
|
|
tags:
|
|
- 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: ed993c62abb165265b5e3569eb16c4e203db7921840c35932a96962182295327
|
|
|
|
...
|