This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
upload.yml
74 lines (70 loc) · 2.04 KB
/
upload.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# 阿里云对象存储
oss:
stage: shell-service
image: maven:3.6.3-openjdk-17
needs:
- job: shell-package
artifacts: true
script:
- wget https://gosspublic.alicdn.com/ossutil/1.7.13/ossutil64
- chmod 755 ossutil64
- echo "[Credentials]" > .ossutilconfig
- echo "language=CH" >> .ossutilconfig
- echo "endpoint=$endpoint" >> .ossutilconfig
- echo "accessKeyID=$accessKeyID" >> .ossutilconfig
- echo "accessKeySecret=$accessKeySecret" >> .ossutilconfig
- chmod 755 oss.sh
- "./oss.sh"
only:
- shell
# 腾讯云对象存储
cos:
stage: shell-service
image: maven:3.6.3-openjdk-17
needs:
- job: shell-package
artifacts: true
script:
- wget https://cosbrowser.cloud.tencent.com/software/coscli/coscli-linux
- mv coscli-linux coscli
- chmod 755 coscli
- ./coscli --version
- chmod 755 cos.sh
- "./cos.sh"
only:
- shell
# 华为云对象存储
obs:
stage: shell-service
image: maven:3.6.3-openjdk-17
needs:
- job: shell-package
artifacts: true
script:
- wget https://obs-community.obs.cn-north-1.myhuaweicloud.com/obsutil/current/obsutil_linux_amd64.tar.gz
- tar -zxvf obsutil_linux_amd64.tar.gz
- cp obsutil_linux_amd64*/obsutil obsutil
- chmod 755 obsutil
- ./obsutil version
- echo 因为华为云对象存储OBS配置文件中的参数较多,并且下载的始终是最新版。不同版本可能存在配置参数的差异,故采用软件命令直接生成配置文件(使用的变量受保护,不会再日志中输出)。
- ./obsutil config -i=$ak -k=$sk -e=$et
- chmod 755 obs.sh
- "./obs.sh"
only:
- shell
# 百度云对象存储
bos:
stage: shell-service
image: maven:3.6.3-openjdk-17
needs:
- job: shell-package
artifacts: true
script:
- wget https://bce-doc-on.bj.bcebos.com/bce-documentation/BOS/linux-bcecmd-0.3.3.zip
- unzip linux-bcecmd-0.3.3.zip
- cp ./linux-bcecmd-0.3.3/bcecmd bcecmd
- chmod 755 bcecmd
- chmod 755 bos.sh
- "./bos.sh"
only:
- shell