forked from harness/harness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
71 lines (64 loc) · 1.47 KB
/
.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
clone:
path: github.com/drone/drone
build:
image: armhfbuild/drone-golang:1.5
environment:
- GO15VENDOREXPERIMENT=1
commands:
- make deps gen
#- make test test_postgres test_mysql
- make build build_static deb docs
#compose:
#postgres:
#image: postgres:9.4.5
#environment:
#- POSTGRES_USER=postgres
#mysql:
#image: mysql:5.6.27
#environment:
#- MYSQL_DATABASE=test
#- MYSQL_ALLOW_EMPTY_PASSWORD=yes
publish:
docker_master:
image: armhfplugins/drone-docker:docker-caching
username: $$DOCKER_USER
password: $$DOCKER_PASSWORD
email: $$DOCKER_EMAIL
repo: armhfbuild/drone
force_tag: true
tag:
- "latest"
- "0.4"
when:
repo: armhf-docker-library/drone
branch: master
docker_alpine:
image: armhfplugins/drone-docker:docker-caching
file: "Dockerfile-alpine"
username: $$DOCKER_USER
password: $$DOCKER_PASSWORD
email: $$DOCKER_EMAIL
repo: armhfbuild/drone
force_tag: true
tag:
- "0.4-alpine"
when:
repo: armhf-docker-library/drone
branch: master
docker_branch:
image: armhfplugins/drone-docker:docker-caching
username: $$DOCKER_USER
password: $$DOCKER_PASSWORD
email: $$DOCKER_EMAIL
repo: armhfbuild/drone
force_tag: true
tag: $$BRANCH
when:
repo: armhf-docker-library/drone
cache:
mount:
- /drone/docker
notify:
slack:
webhook_url: $$SLACK_WEBHOOK_URL
channel: armhf