mirror of
https://github.com/xiaoqidun/gocos.git
synced 2024-12-27 04:51:06 +08:00
This commit is contained in:
parent
a36fd1d626
commit
067622650a
@ -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:
|
||||
|
@ -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
2
go.mod
@ -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
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/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=
|
||||
|
Loading…
x
Reference in New Issue
Block a user