当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 18

Leezhqln10/xuxiaowei-cloud-next
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
upload.yml 2.04 KB
一键复制 编辑 原始数据 按行查看 历史
徐晓伟 提交于 2023-02-27 00:31 . :construction_worker:流水线增加k8s发布功能及优化
# 阿里云对象存储
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/leezhqln10/xuxiaowei-cloud-next.git
git@gitee.com:leezhqln10/xuxiaowei-cloud-next.git
leezhqln10
xuxiaowei-cloud-next
xuxiaowei-cloud-next
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385