mirror of
https://github.com/xiaoqidun/gocos.git
synced 2024-12-22 10:51:07 +08:00
32 lines
908 B
YAML
32 lines
908 B
YAML
kind: pipeline
|
|
name: default
|
|
node:
|
|
region: cn
|
|
steps:
|
|
- name: build
|
|
pull: if-not-exists
|
|
image: ccr.ccs.tencentyun.com/xiaoqidun/goenv
|
|
commands:
|
|
- GOAMD64=v3 CGO_ENABLED=0 go build -o gocos -trimpath -ldflags "-s -w -buildid=" 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 |