-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
50 lines (44 loc) · 1.07 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
matrix:
VERSION:
- v1.1.0
build:
image: armhfbuild/buildpack-deps:jessie-scm
commands:
- git clone --single-branch --branch $$VERSION https://github.com/docker/swarm upstream
- sed -i 's/FROM golang/FROM armhfbuild\/golang/' upstream/Dockerfile
publish:
docker_branch:
image: armhfplugins/drone-docker:docker-caching
context: upstream
file: upstream/Dockerfile
username: $$DOCKER_USER
password: $$DOCKER_PASSWORD
email: $$DOCKER_EMAIL
repo: armhfbuild/swarm-dev
tag: "$${VERSION##v}"
docker_latest:
image: armhfplugins/drone-docker:docker-caching
context: upstream
file: upstream/Dockerfile
username: $$DOCKER_USER
password: $$DOCKER_PASSWORD
email: $$DOCKER_EMAIL
repo: armhfbuild/swarm-dev
tag: latest
when:
matrix:
VERSION: v1.1.0
cache:
mount:
- /drone/docker
notify:
slack:
webhook_url: $$SLACK_WEBHOOK_URL
channel: armhf
downstream:
repositories:
- armhf-docker-library/swarm
token: $$DRONE_API_TOKEN
when:
event: push
success: true