Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
microservice-autodevopspipelines
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
李春生
microservice-autodevopspipelines
Commits
6d290dcd
Commit
6d290dcd
authored
Jan 10, 2019
by
据说甜蜜呢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改命名
parent
58092a6b
Pipeline
#4231
passed with stage
in 15 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletions
+35
-1
devops/PipeLines/Updating/001_AnalysingGitChanges.sh
+1
-1
test.sh
+34
-0
No files found.
devops/PipeLines/Updating/001_AnalysingGitChanges.sh
View file @
6d290dcd
...
...
@@ -79,7 +79,7 @@ else
done
AddTailConfig
declare
serviceCount
=
$(
ls
-l
src/
s
ervices |
grep
"^d"
| wc
-l
)
declare
serviceCount
=
$(
ls
-l
src/
S
ervices |
grep
"^d"
| wc
-l
)
if
[
"
${
publishableCount
}
"
==
"
${
serviceCount
}
"
]
;
then
AddHeadConfig
"0"
,
"1"
...
...
test.sh
0 → 100644
View file @
6d290dcd
#!/bin/bash
set
-e
IFS
=
$'
\n\n
'
export
Environment
=
'Staging'
# Import external functions
chmod +x ./devops/PipeLines/Functions.config.sh
source
./devops/PipeLines/Functions.config.sh
GetAppName appName
echo
""
echo
"Begin creating
${
appName
}
's settings to the configmap of k8s..."
GetNameSpace namespace
# global variable
GetAccessToken AccessToken
GetRegistryHost RegistryHost
GetK8sApiServer K8sApiServer
GetKongApiServer KongApiServer
GetKongRouteDomain KongRouteDomain
for
servicePrefix
in
`
ls
./src/Services|xargs
-d
'/'
`
do
GetServiceName
${
servicePrefix
}
serviceName
GetServiceDir
${
servicePrefix
}
${
serviceName
}
serviceDir
CreateConfig
${
Environment
}
${
namespace
}
${
K8sApiServer
}
${
serviceDir
}
${
servicePrefix
}
done
echo
""
echo
"End creating app settings to the configmap of k8s..."
\ 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