-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.drone.yml
53 lines (45 loc) · 936 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
kind: pipeline
name: default
clone:
disable: true
workspace:
base: /workspace
path: src/github.com/bitpoke/build
steps:
- name: clone
image: plugins/git
settings:
depth: 0
tags: true
- name: install dependencies
image: docker.io/bitpoke/build:v0.6.0
commands:
- make -j4 build.tools
- name: build
pull: true
image: docker.io/bitpoke/build:v0.6.0
commands:
- dockerize -wait http://docker:2375/_ping -timeout 30s
- make -j4 build
- name: publish
image: docker.io/bitpoke/build:v0.6.0
commands:
- /usr/local/bin/setup-credentials-helper.sh
- make publish
environment:
DOCKER_USERNAME: bitpokebot
DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD
when:
ref:
- refs/heads/master-*
- refs/heads/release-*
services:
- name: docker
image: docker:20.10.8-dind-rootless
environment:
DOCKER_TLS_CERTDIR: ""
trigger:
ref:
- refs/pull/**
- refs/heads/**