-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
46 lines (41 loc) · 877 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
clone:
recursive: true
matrix:
TARGET_PLATFORM:
- linux-386
- linux-amd64
- linux-arm
- darwin-amd64
- windows-386
- windows-amd64
compose:
mqtt:
image: ansi/mosquitto
build:
image: htdvisser/ttnbuild
pull: true
environment:
- RELEASE_DIR=release/branch/$$BRANCH
commands:
# ttnbuild already contains dependencies, so we copy them:
- rsync -a /go/src/ /drone/src/
- make deps
- make build package
when:
branch: [master, develop]
publish:
azure_storage:
image: htdvisser/drone-azure-storage
account_key: $$AZURE_STORAGE_KEY
storage_account: ttnreleases
container: release
source: release/
when:
branch: [master, develop]
dockerhub:
repo: thethingsnetwork/ttn
token: $$DOCKER_TOKEN
when:
branch: master
matrix:
TARGET_PLATFORM: linux-amd64