This commit is contained in:
parent
b59380ad4e
commit
93079b5b7b
15
.drone.yml
15
.drone.yml
|
@ -9,13 +9,24 @@ server:
|
||||||
from_secret: joj3-test
|
from_secret: joj3-test
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: prepare
|
||||||
|
commands:
|
||||||
|
- export PATH=$PATH:/usr/local/go/bin
|
||||||
|
- go env -w GOPROXY=https://goproxy.cn,direct
|
||||||
|
- echo $SHELL
|
||||||
|
- echo $PATH
|
||||||
|
- go version
|
||||||
- name: build
|
- name: build
|
||||||
|
commands:
|
||||||
|
- export PATH=$PATH:/usr/local/go/bin
|
||||||
|
- make
|
||||||
|
- name: test
|
||||||
environment:
|
environment:
|
||||||
CONF_GITEATOKEN:
|
CONF_GITEATOKEN:
|
||||||
from_secret: gitea-token
|
from_secret: gitea-token
|
||||||
commands:
|
commands:
|
||||||
- export PATH=$PATH:/usr/local/go/bin
|
- export PATH=$PATH:/usr/local/go/bin
|
||||||
- go env -w GOPROXY=https://goproxy.cn,direct
|
|
||||||
- make
|
|
||||||
- make test
|
- make test
|
||||||
|
- name: store
|
||||||
|
commands:
|
||||||
- cp build/joj3 /home/drone/.local/bin/joj3
|
- cp build/joj3 /home/drone/.local/bin/joj3
|
||||||
|
|
Loading…
Reference in New Issue
Block a user