Commit 83e6727f authored by lipengcheng 's avatar lipengcheng

ci: boot

parent b825ba65
...@@ -48,5 +48,7 @@ job-deploy: ...@@ -48,5 +48,7 @@ job-deploy:
- ssh root@119.45.165.197 "pwd" - ssh root@119.45.165.197 "pwd"
- ssh root@119.45.165.197 "rm -rf /www/mould-vuecli3/dist" - ssh root@119.45.165.197 "rm -rf /www/mould-vuecli3/dist"
- scp -r ./dist root@119.45.165.197:/www/mould-vuecli3/ - scp -r ./dist root@119.45.165.197:/www/mould-vuecli3/
- sh ./notification_boot.sh "on_success" ${CI_COMMIT_REF_SLUG} ${CI_COMMIT_SHA:0:8} "PackageName_productionRelease_${CI_COMMIT_REF_SLUG}_${CI_COMMIT_SHA:0:8}"
tags: tags:
- tag-project2 - tag-project2
# when: manual
#!/usr/bin/env bash
if [[ $1 == "on_success" ]];
then
curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=a2ed2a7b-a30a-454f-9e3b-53905c73a00f'
-H 'Content-Type: application/json'
-d '
{
"msgtype": "markdown",
"markdown": {
"content": "分支:'$2' 提交:'$3'
'$4' 打包完成!
[点击查看](http://119.45.165.197)"
}
}'
elif [[ $1 == "on_failure" ]];
then
curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=a2ed2a7b-a30a-454f-9e3b-53905c73a00f'
-H 'Content-Type: application/json'
-d '
{
"msgtype": "markdown",
"markdown": {
"content": "打包失败!
[点击查看](http://119.45.165.197)"
}
}'
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment