Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k8syml
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
k8syml
Commits
3f6b119b
Commit
3f6b119b
authored
Feb 03, 2021
by
王悦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ding
parent
b274c848
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
yamls/config/version2yaml.js
+4
-0
yamls/main.js
+11
-0
No files found.
yamls/config/version2yaml.js
View file @
3f6b119b
...
@@ -6,10 +6,14 @@ module.exports = {
...
@@ -6,10 +6,14 @@ module.exports = {
'179.6'
:
"qualitydoctor|zhichan/qualitydoctor-deployment.yaml"
,
'179.6'
:
"qualitydoctor|zhichan/qualitydoctor-deployment.yaml"
,
'7.0'
:
"ipopweb|zhichan/ipop-web-deployment.yaml"
,
'7.0'
:
"ipopweb|zhichan/ipop-web-deployment.yaml"
,
'1.0'
:
"igirl|zhichan/igirl-web-deployment.yaml"
,
'1.0'
:
"igirl|zhichan/igirl-web-deployment.yaml"
,
'31.0'
:
"zc-channel-gateway|zhichan/igirl-channel-gateway.yaml"
,
'1230.0'
:
"marketplat|zhichan/newtime/marketplat-deployment.yaml"
,
'1230.0'
:
"marketplat|zhichan/newtime/marketplat-deployment.yaml"
,
'1240.0'
:
"mmc|zhichan/newtime/mmc-deployment.yaml"
,
'1240.0'
:
"mmc|zhichan/newtime/mmc-deployment.yaml"
,
'1270.0'
:
"jiaxiya|zhichan/newtime/zhiquanquan-deployment.yaml"
,
'1270.0'
:
"jiaxiya|zhichan/newtime/zhiquanquan-deployment.yaml"
,
'80.1'
:
"center-channel|zhichan/center-channel-deployment.yaml"
,
'80.1'
:
"center-channel|zhichan/center-channel-deployment.yaml"
,
'80.2'
:
"center-channel|zhichan/center-channel-deployment.yaml"
,
'90.0'
:
"center-app|zhichan/center-app-deployment.yaml"
,
'81.1'
:
"center-order|zhichan/center-order-deployment.yaml"
,
'98.0'
:
"center-tmtransaction|zhichan/center-tmtransaction-deployment.yaml"
,
'98.0'
:
"center-tmtransaction|zhichan/center-tmtransaction-deployment.yaml"
,
"120.0"
:
"monitor|jobs/monitor.yml"
,
"120.0"
:
"monitor|jobs/monitor.yml"
,
"0.42"
:
"frontpub|zhichan/front-deployment.yaml"
,
"0.42"
:
"frontpub|zhichan/front-deployment.yaml"
,
...
...
yamls/main.js
View file @
3f6b119b
...
@@ -37,13 +37,23 @@ app.post("/upline", async function (req, res, next) {
...
@@ -37,13 +37,23 @@ app.post("/upline", async function (req, res, next) {
let
{
stdout
,
stderr
}
=
await
exec
(
patternstr
)
let
{
stdout
,
stderr
}
=
await
exec
(
patternstr
)
console
.
log
(
'stdout:'
,
stdout
);
console
.
log
(
'stdout:'
,
stdout
);
console
.
error
(
'stderr:'
,
stderr
);
console
.
error
(
'stderr:'
,
stderr
);
pushDing
(
`发布成功:
${
containerName
}
-
${
version
}
`
)
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
pushDing
(
`发布失败:
${
version
}
`
)
res
.
end
(
"ok"
)
res
.
end
(
"ok"
)
}
}
}
}
res
.
end
(
"ok"
)
res
.
end
(
"ok"
)
})
})
async
function
pushDing
(
content
){
let
t
=
new
Date
().
toLocaleString
()
let
url
=
"https://oapi.dingtalk.com/robot/send?access_token=2160717973e87b0e77b23db1e656e0af01f79fd031ad9fc0adcd90c2b0d2c623"
let
curlStr
=
`curl -k -H 'Content-type: application/json' -d '{ "msgtype": "text","text": {"content": "
${
t
+
content
}
"}}'
${
url
}
`
let
{
stdout
,
stderr
}
=
await
exec
(
curlStr
)
console
.
log
(
'stdout:'
,
stdout
);
console
.
error
(
'stderr:'
,
stderr
);
}
server
.
listen
(
31199
,
function
()
{
server
.
listen
(
31199
,
function
()
{
console
.
log
(
'Express server listening .....'
);
console
.
log
(
'Express server listening .....'
);
});
});
\ No newline at end of file
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