forked from gary-kim/drone-oss
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yaml
104 lines (91 loc) · 2.33 KB
/
.drone.yaml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
kind: pipeline
name: Build Drone OSS
platform:
os: linux
arch: amd64
steps:
- name: Clone drone repo
image: docker:git
commands:
- git clone --recursive https://github.com/drone/drone.git drone
- (cd drone && git checkout $(cat ../VERSION))
- name: Compile Drone OSS
image: golang:1.14
environment:
CGO_ENABLED: 1
GO111MODULE: on
GOARCH: amd64
GOOS: linux
GOPROXY: https://proxy.golang.org,direct
commands:
- version=''
- if [ $DRONE_BRANCH = 'development' ]; then version='-development'; fi
- echo $version
- (cd drone && ../build.sh "oss nolimit")
- (cd drone && ../tags.sh $version ) > .tags
- cat .tags
- name: Docker build & push
image: plugins/docker
settings:
mirror: dockerhub.nexus.diesel.net
registry: docker.nexus.diesel.net
username:
from_secret: nexus_user
password:
from_secret: nexus_pass
context: drone
dockerfile: drone/docker/Dockerfile.server.linux.amd64
repo: docker.nexus.diesel.net/drone-oss
purge: false
trigger:
branch:
- development
- stable
event:
- push
---
kind: pipeline
name: Build Drone Enterprise (without limits)
platform:
os: linux
arch: amd64
steps:
- name: Clone drone repo
image: docker:git
commands:
- git clone --recursive https://github.com/drone/drone.git drone
- (cd drone && git checkout $(cat ../VERSION))
- name: Compile Drone Enterprise
image: golang:1.14
environment:
CGO_ENABLED: 1
GO111MODULE: on
GOARCH: amd64
GOOS: linux
GOPROXY: https://proxy.golang.org,direct
commands:
- version=''
- if [ $DRONE_BRANCH = 'development' ]; then version='-development'; fi
- echo $version
- (cd drone && ../build.sh "nolimit")
- (cd drone && ../tags.sh $version ) > .tags
- name: Docker build & push
image: plugins/docker
settings:
mirror: dockerhub.nexus.diesel.net
registry: docker.nexus.diesel.net
username:
from_secret: nexus_user
password:
from_secret: nexus_pass
context: drone
dockerfile: drone/docker/Dockerfile.server.linux.amd64
repo: docker.nexus.diesel.net/drone-nolimit
purge: false
trigger:
branch:
- development
- stable
event:
- push