-
Notifications
You must be signed in to change notification settings - Fork 5
/
.drone.yml
46 lines (44 loc) · 1.07 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
---
kind: pipeline
type: docker
name: default
steps:
- name: dep
image: golang:1.22
environment:
ACCESS_TOKEN:
from_secret: GIT_ACCESS_TOKEN
commands:
- git config --global url."https://$ACCESS_TOKEN:[email protected]/wings-software".insteadOf "https://github.com/wings-software"
- go env -w GOPRIVATE=github.com/wings-software
- export PATH=$PATH:$(go env GOPATH)/bin
- git submodule init
- git submodule update
- make dep
volumes:
- name: gopath
path: /go
- name: check
image: golang:1.22
environment:
ACCESS_TOKEN:
from_secret: GIT_ACCESS_TOKEN
commands:
- git config --global url."https://$ACCESS_TOKEN:[email protected]/wings-software".insteadOf "https://github.com/wings-software"
- go env -w GOPRIVATE=github.com/wings-software
- export PATH=$PATH:$(go env GOPATH)/bin
- make check
volumes:
- name: gopath
path: /go
- name: build
image: golang:1.22
commands:
- export PATH=$PATH:$(go env GOPATH)/bin
- make build
volumes:
- name: gopath
path: /go
volumes:
- name: gopath
temp: {}