auto build.
This commit is contained in:
parent
9d3214d1fc
commit
c124366540
28
.drone.yml
Normal file
28
.drone.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: ssh-manager
|
||||||
|
steps:
|
||||||
|
- name: gobuild
|
||||||
|
image: golang:alpine
|
||||||
|
pull: if-not-exists
|
||||||
|
environment:
|
||||||
|
GOPROXY: https://goproxy.cn
|
||||||
|
commands:
|
||||||
|
- sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||||
|
- apk update && apk add build-base
|
||||||
|
- go build
|
||||||
|
|
||||||
|
- name: gitea_release
|
||||||
|
image: plugins/gitea-release
|
||||||
|
pull: if-not-exists
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: gitea_token
|
||||||
|
base_url: https://git.rainss.cn
|
||||||
|
files:
|
||||||
|
- main
|
||||||
|
checksum:
|
||||||
|
- sha256
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
Loading…
Reference in New Issue
Block a user