gocos/.drone.yml

22 lines
563 B
YAML
Raw Normal View History

2020-12-24 10:10:59 +08:00
kind: pipeline
type: docker
name: default
steps:
- name: build
pull: if-not-exists
2021-09-22 09:46:02 +08:00
image: hkccr.ccs.tencentyun.com/xiaoqidun/goenv
2020-12-24 10:10:59 +08:00
commands:
- CGO_ENABLED=0 go build -o gocos -trimpath -ldflags '-s -w' gocos.go
- name: docker
pull: if-not-exists
image: plugins/docker
settings:
2021-09-22 09:46:02 +08:00
repo: hkccr.ccs.tencentyun.com/xiaoqidun/gocos
registry: hkccr.ccs.tencentyun.com
2020-12-24 10:10:59 +08:00
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: Dockerfile