feat(发布镜像): 调整发布镜像
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
xiaoqidun 2021-09-22 09:46:02 +08:00
parent a36fd1d626
commit 067622650a
4 changed files with 7 additions and 6 deletions

View File

@ -5,14 +5,15 @@ name: default
steps:
- name: build
pull: if-not-exists
image: xiaoqidun/goenv
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: xiaoqidun/gocos
repo: hkccr.ccs.tencentyun.com/xiaoqidun/gocos
registry: hkccr.ccs.tencentyun.com
username:
from_secret: docker_username
password:

View File

@ -11,7 +11,7 @@ name: default
steps:
- name: upload
image: xiaoqidun/gocos
image: hkccr.ccs.tencentyun.com/xiaoqidun/gocos
settings:
secret_id:
from_secret: secret_id

2
go.mod
View File

@ -2,7 +2,7 @@ module github.com/xiaoqidun/gocos
go 1.17
require github.com/tencentyun/cos-go-sdk-v5 v0.7.30
require github.com/tencentyun/cos-go-sdk-v5 v0.7.31
require (
github.com/google/go-querystring v1.0.0 // indirect

4
go.sum
View File

@ -11,5 +11,5 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.194/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/kms v1.0.194/go.mod h1:yrBKWhChnDqNz1xuXdSbWXG56XawEq0G5j1lg4VwBD4=
github.com/tencentyun/cos-go-sdk-v5 v0.7.30 h1:UUfqdSvAzvVZwg+TNpYqrLQmdgGZ4PYD95jYiEEWCmQ=
github.com/tencentyun/cos-go-sdk-v5 v0.7.30/go.mod h1:4E4+bQ2gBVJcgEC9Cufwylio4mXOct2iu05WjgEBx1o=
github.com/tencentyun/cos-go-sdk-v5 v0.7.31 h1:NujkkOKMJ3IFs1+trCwXOKRCIPQ8qI5Lxul9JkhTg6M=
github.com/tencentyun/cos-go-sdk-v5 v0.7.31/go.mod h1:4E4+bQ2gBVJcgEC9Cufwylio4mXOct2iu05WjgEBx1o=