-
Notifications
You must be signed in to change notification settings - Fork 183
/
.drone.yml
123 lines (109 loc) · 1.97 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
kind: pipeline
type: vm
name: default
pool:
use: ubuntu
steps:
- name: test
image: golang:1.20
commands:
- go test ./...
- name: build
image: golang:1.20
commands:
- sh .drone.sh
depends_on:
- test
- name: publish linux
image: plugins/docker
settings:
repo: drone/cli
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
auto_tag_suffix: linux-amd64
when:
event: [push, tag]
depends_on:
- build
- name: release
image: plugins/github-release
settings:
files:
- release/drone_*.tar.gz
- release/drone_checksums.txt
api_key:
from_secret: github_token
when:
event: tag
depends_on:
- build
---
kind: pipeline
type: vm
name: arm
pool:
use: ubuntu_arm64
steps:
- name: build
image: golang:1.20
commands:
- sh .drone.sh
- name: publish_linux_arm
image: plugins/docker
settings:
repo: drone/cli
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
auto_tag_suffix: linux-arm
dockerfile: Dockerfile.linux.arm
platform: linux/arm/v7
when:
event: [push, tag]
depends_on:
- build
- name: publish_linux_arm64
image: plugins/docker
settings:
repo: drone/cli
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
auto_tag_suffix: linux-arm64
dockerfile: Dockerfile.linux.arm64
platform: linux/arm64
when:
event: [push, tag]
depends_on:
- build
depends_on:
- default
---
kind: pipeline
type: vm
name: manifest
pool:
use: ubuntu
steps:
- name: manifest
image: plugins/manifest
settings:
auto_tag: true
ignore_missing: true
spec: docker/manifest.tmpl
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event: [push, tag]
depends_on:
- default
- arm