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

@ -5,14 +5,15 @@ name: default
steps: steps:
- name: build - name: build
pull: if-not-exists pull: if-not-exists
image: xiaoqidun/goenv image: hkccr.ccs.tencentyun.com/xiaoqidun/goenv
commands: commands:
- CGO_ENABLED=0 go build -o gocos -trimpath -ldflags '-s -w' gocos.go - CGO_ENABLED=0 go build -o gocos -trimpath -ldflags '-s -w' gocos.go
- name: docker - name: docker
pull: if-not-exists pull: if-not-exists
image: plugins/docker image: plugins/docker
settings: settings:
repo: xiaoqidun/gocos repo: hkccr.ccs.tencentyun.com/xiaoqidun/gocos
registry: hkccr.ccs.tencentyun.com
username: username:
from_secret: docker_username from_secret: docker_username
password: password:

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

2
go.mod

@ -2,7 +2,7 @@ module github.com/xiaoqidun/gocos
go 1.17 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 ( require (
github.com/google/go-querystring v1.0.0 // indirect github.com/google/go-querystring v1.0.0 // indirect

4
go.sum

@ -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/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/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/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.31 h1:NujkkOKMJ3IFs1+trCwXOKRCIPQ8qI5Lxul9JkhTg6M=
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/go.mod h1:4E4+bQ2gBVJcgEC9Cufwylio4mXOct2iu05WjgEBx1o=