gocos/.drone.yml
xiaoqidun 11ab5e4f01
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
feat(更新镜像): 更新镜像
2023-07-12 11:10:26 +08:00

33 lines
901 B
YAML

kind: pipeline
type: docker
name: default
node:
region: cn
steps:
- name: build
pull: if-not-exists
image: ccr.ccs.tencentyun.com/xiaoqidun/goenv
commands:
- CGO_ENABLED=0 go build -o gocos -trimpath -ldflags '-s -w' gocos.go
- name: docker-cn
pull: if-not-exists
image: plugins/docker
settings:
repo: ccr.ccs.tencentyun.com/xiaoqidun/gocos
registry: ccr.ccs.tencentyun.com
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: Dockerfile
- name: docker-hk
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