JOJ3/.drone.yml
张泊明518370910136 b9957a9965
All checks were successful
continuous-integration/drone/push Build is passing
ci: show git status
2024-04-26 17:18:35 -04:00

35 lines
681 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:
- go env -w GOPROXY=https://goproxy.cn,direct
- whoami
- pwd
- env
- go version
- go env
- git status -v
- git log -1
- name: build
commands:
- make
- name: test
environment:
CONF_GITEATOKEN:
from_secret: gitea-token
commands:
- make prepare-test
- make test
- name: store
commands:
- cp build/joj3 /home/drone/.local/bin/joj3