-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.drone.yml
107 lines (100 loc) · 2.37 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
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
105
106
107
---
kind: pipeline
name: build-and-deploy
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: apply-patch
image: garykim/personal-tools-image:latest
pull: always
commands:
- patch drone/docker/Dockerfile.server.linux.amd64 < Dockerfile.server.linux.amd64.patch
- name: build-drone-oss
image: golang:1.22
commands:
- (cd drone && ../build.sh)
- (cd drone && ../tags.sh) > .tags
environment:
CGO_ENABLED: 1
GO111MODULE: on
GOARCH: amd64
GOOS: linux
GOPROXY: https://proxy.golang.org,direct
- name: build-standard-image
image: garykim/drone-docker
settings:
context: drone
dockerfile: drone/docker/Dockerfile.server.linux.amd64
password:
from_secret: docker_password
repo: garykim/drone-oss
username: garykim
when:
branch:
- master
event:
- push
repo:
- gary-kim/drone-oss
trigger:
branch:
- master
event:
- pull_request
- push
---
kind: pipeline
name: personal-drone-nolimit
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: apply-patch
image: garykim/personal-tools-image:latest
pull: always
commands:
- patch drone/docker/Dockerfile.server.linux.amd64 < Dockerfile.server.linux.amd64.patch
- name: build-drone-nolimit
image: golang:1.22
commands:
- (cd drone && ../build.sh nolimit)
- (cd drone && ../tags.sh) > .tags
environment:
CGO_ENABLED: 1
GO111MODULE: on
GOARCH: amd64
GOOS: linux
GOPROXY: https://proxy.golang.org,direct
- name: build-nolimit-image
image: garykim/drone-docker
settings:
context: drone
dockerfile: drone/docker/Dockerfile.server.linux.amd64
password:
from_secret: docker_password
repo: garykim/drone-nolimit
username: garykim
when:
branch:
- master
event:
- push
repo:
- gary-kim/drone-oss
trigger:
branch:
- master
event:
- pull_request
- push