1 Star 0 Fork 51

ustcck/xuxiaowei-cloud

forked from xuxiaowei-cloud/xuxiaowei-cloud
暂停
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
upload.yml 2.02 KB
一键复制 编辑 原始数据 按行查看 历史
徐晓伟 提交于 2023-02-20 22:11 . :construction_worker:shell 执行器
# 阿里云对象存储
oss:
stage: shell-service
image: maven:3.6.3-jdk-8
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-jdk-8
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-jdk-8
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-jdk-8
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/ustcck/xuxiaowei-cloud.git
git@gitee.com:ustcck/xuxiaowei-cloud.git
ustcck
xuxiaowei-cloud
xuxiaowei-cloud
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385