feat(项目代码): 首次提交
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-12-24 10:10:59 +08:00
parent 25aca4de3f
commit 776c94c94c
6 changed files with 165 additions and 0 deletions

20
.drone.yml Normal file
View File

@ -0,0 +1,20 @@
kind: pipeline
type: docker
name: default
steps:
- name: build
pull: if-not-exists
image: xiaoqidun/goenv
commands:
- CGO_ENABLED=0 go build -o gocos -trimpath -ldflags '-s -w' gocos.go
- name: docker
pull: if-not-exists
image: plugins/docker
settings:
repo: xiaoqidun/gocos
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: Dockerfile