forked from armbian/armbian-router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
63 lines (62 loc) · 1.35 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
kind: pipeline
name: default
type: docker
steps:
- name: test
image: golang:alpine
volumes:
- name: build
path: /build
commands:
- go mod download
- go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
- ginkgo --randomize-all --p --cover --coverprofile=cover.out .
- go tool cover -func=cover.out
environment:
CGO_ENABLED: '0'
- name: build
image: tystuyfzand/goc:1.21
volumes:
- name: build
path: /build
commands:
- mkdir -p /build
- go mod download
- export CGO_ENABLED=0
- goc -o /build/dlrouter
environment:
GOOS: linux,windows,darwin
GOARCH: 386,amd64,arm,arm64
depends_on: [ test ]
- name: release
image: plugins/github-release
volumes:
- name: build
path: /build
settings:
api_key:
from_secret: github_token
files:
- /build/dlrouter_*
checksum:
- md5
- sha1
- sha256
when:
event: tag
depends_on: [ build ]
- name: docker
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: registry.meow.tf/tyler/armbian-router
registry: registry.meow.tf
depends_on: [ test ]
when:
event: tag
volumes:
- name: build
temp: {}