Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mould-vuecli3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lhfe
mould-vuecli3
Commits
83e6727f
Commit
83e6727f
authored
Oct 10, 2020
by
lipengcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: boot
parent
b825ba65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
.gitlab-ci.yml
.gitlab-ci.yml
+2
-0
notification_boot.sh
notification_boot.sh
+28
-0
No files found.
.gitlab-ci.yml
View file @
83e6727f
...
...
@@ -48,5 +48,7 @@ job-deploy:
-
ssh root@119.45.165.197 "pwd"
-
ssh root@119.45.165.197 "rm -rf /www/mould-vuecli3/dist"
-
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
:
-
tag-project2
# when: manual
notification_boot.sh
0 → 100644
View file @
83e6727f
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment