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
662af41d
Commit
662af41d
authored
Jan 09, 2019
by
李二毛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'development' into 'rel/major'
修改CI方法 See merge request liermao/microservice-autodevopspipelines!28
parents
fa76ab53
67ff337a
Pipeline
#4120
failed with stages
in 31 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
14 deletions
+11
-14
devops/PipeLines/Creation/001_CI.sh
+0
-3
devops/PipeLines/Functions.sh
+11
-11
No files found.
devops/PipeLines/Creation/001_CI.sh
View file @
662af41d
...
...
@@ -18,9 +18,6 @@ dotnet build ${solutionName}
echo
""
echo
"Please check the version of each microservice carefully !!!"
GetVersion version
GetImageUserName registryUserName
declare
publishOutputDir
=
./publish
rm
-fr
${
publishOutputDir
}
...
...
devops/PipeLines/Functions.sh
View file @
662af41d
...
...
@@ -93,23 +93,22 @@ function IsPublishableOf()
function
CI
()
{
declare
serviceName
=
$1
declare
publishFile
=
$2
declare
publishOutputDir
=
s2
GetVersion version
GetImageUserName registryUserName
# repository name must be lowercase
ToLower
${
RegistryHost
}
RegistryHost
ToLower
${
registryUserName
}
registryUserName
ToLower
${
imagename
}
imagename
declare
imagefullname
=
"
${
RegistryHost
}
/
${
registryUserName
}
/
${
imagename
}
:
${
version
}
"
ToLower
"
${
RegistryHost
}
/
${
registryUserName
}
/
${
serviceName
}
:
${
version
}
"
imagefullname
echo
""
echo
"begin delivery for
${
imagename
}
..."
mkdir
-p
${
publishOutputDir
}
/
${
imagen
ame
}
dotnet publish
${
publishFile
}
-o
../../publish/
${
imagen
ame
}
-c
release
--no-restore
docker build
-t
${
imagefullname
}
${
publishOutputDir
}
/
${
imagen
ame
}
echo
"begin delivery for
${
serviceName
}
:
${
version
}
..."
mkdir
-p
${
publishOutputDir
}
/
${
serviceN
ame
}
dotnet publish
${
publishFile
}
-o
../../publish/
${
serviceN
ame
}
-c
release
--no-restore
docker build
-t
${
imagefullname
}
${
publishOutputDir
}
/
${
serviceN
ame
}
docker push
${
imagefullname
}
rm
-fr
${
publishOutputDir
}
/
${
imagen
ame
}
echo
"delivery for
${
imagen
ame
}
:
${
version
}
has been successful."
rm
-fr
${
publishOutputDir
}
/
${
serviceN
ame
}
echo
"delivery for
${
serviceN
ame
}
:
${
version
}
has been successful."
}
\ 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