gocos/.drone.yml
xiaoqidun 067622650a
All checks were successful
continuous-integration/drone/push Build is passing
feat(发布镜像): 调整发布镜像
2021-09-22 09:46:02 +08:00

22 lines
563 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: build
pull: if-not-exists
image: hkccr.ccs.tencentyun.com/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: hkccr.ccs.tencentyun.com/xiaoqidun/gocos
registry: hkccr.ccs.tencentyun.com
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: Dockerfile