mirror of
https://github.com/xiaoqidun/gocos.git
synced 2025-12-07 00:15:21 +08:00
feat(调整参数): 源和目的输入参数后面添加_path
This commit is contained in:
@@ -19,8 +19,8 @@ steps:
|
|||||||
from_secret: secret_key
|
from_secret: secret_key
|
||||||
bucket_url:
|
bucket_url:
|
||||||
from_secret: bucket_url
|
from_secret: bucket_url
|
||||||
source: build/release
|
source_path: build/release
|
||||||
target: build/release
|
target_path: build/release
|
||||||
strip_prefix: build/release
|
strip_prefix: build/release
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -38,11 +38,11 @@ API密钥管理获得的SecretKey
|
|||||||
|
|
||||||
存储桶概览中的访问域名
|
存储桶概览中的访问域名
|
||||||
|
|
||||||
### source
|
### source_path
|
||||||
|
|
||||||
DroneCI中文件的源位置
|
DroneCI中文件的源位置
|
||||||
|
|
||||||
### target
|
### target_path
|
||||||
|
|
||||||
存储桶中文件的目标位置
|
存储桶中文件的目标位置
|
||||||
|
|
||||||
|
|||||||
8
gocos.go
8
gocos.go
@@ -20,8 +20,8 @@ const (
|
|||||||
SecretID = "secret_id"
|
SecretID = "secret_id"
|
||||||
SecretKey = "secret_key"
|
SecretKey = "secret_key"
|
||||||
BucketURL = "bucket_url"
|
BucketURL = "bucket_url"
|
||||||
Source = "source"
|
SourcePath = "source_path"
|
||||||
Target = "target"
|
TargetPath = "target_path"
|
||||||
StripPrefix = "strip_prefix"
|
StripPrefix = "strip_prefix"
|
||||||
PathSeparator = "/"
|
PathSeparator = "/"
|
||||||
)
|
)
|
||||||
@@ -65,8 +65,8 @@ func main() {
|
|||||||
secretID = GetConfig(SecretID)
|
secretID = GetConfig(SecretID)
|
||||||
secretKey = GetConfig(SecretKey)
|
secretKey = GetConfig(SecretKey)
|
||||||
bucketURL = GetConfig(BucketURL)
|
bucketURL = GetConfig(BucketURL)
|
||||||
source = GetConfig(Source)
|
source = GetConfig(SourcePath)
|
||||||
target = GetConfig(Target)
|
target = GetConfig(TargetPath)
|
||||||
stripPrefix = GetConfig(StripPrefix)
|
stripPrefix = GetConfig(StripPrefix)
|
||||||
)
|
)
|
||||||
if StrIsEmpty(secretID, secretKey, bucketURL, source, target) {
|
if StrIsEmpty(secretID, secretKey, bucketURL, source, target) {
|
||||||
|
|||||||
Reference in New Issue
Block a user