JOJ3/.drone.yml
张泊明518370910136 93079b5b7b
All checks were successful
continuous-integration/drone/push Build is passing
ci: update steps
2024-03-25 03:27:01 -04:00

33 lines
723 B
YAML

---
kind: pipeline
type: ssh
name: CI
server:
host: 111.186.59.59
user: drone
ssh_key:
from_secret: joj3-test
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
commands:
- export PATH=$PATH:/usr/local/go/bin
- make
- name: test
environment:
CONF_GITEATOKEN:
from_secret: gitea-token
commands:
- export PATH=$PATH:/usr/local/go/bin
- make test
- name: store
commands:
- cp build/joj3 /home/drone/.local/bin/joj3