Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
springboot-k8s-example
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
demo
springboot-k8s-example
Commits
c6045d0f
Commit
c6045d0f
authored
Mar 29, 2021
by
卢浩元
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add .gitlab-ci
parent
6e3545db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
.gitlab-ci.yml
.gitlab-ci.yml
+26
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
c6045d0f
stages
:
-
build
-
package
-
deploy
maven-build
:
image
:
harbor.k2software.cn/build/maven:3-jdk-8-alpine
stage
:
build
script
:
"
mvn
package
-B
-s
./settings.xml
-Dmaven.repo.local=/root/.m2"
artifacts
:
paths
:
-
target/*.jar
docker-build
:
stage
:
package
script
:
-
docker build -t harbor.poc.paas.com/library/springboot-k8s-example:$CI_COMMIT_REF_SLUG .
-
docker login -u admin -p K2pass!! harbor.poc.paas.com
-
docker push harbor.poc.paas.com/library/springboot-k8s-example:$CI_COMMIT_REF_SLUG
k8s-deploy
:
image
:
harbor.k2software.cn/build/helm:v3.2.2
stage
:
deploy
script
:
-
sed -i "s/lusyoe\\/k8s-example/harbor.poc.paas.com\\/library\\/springboot-k8s-example:$CI_COMMIT_REF_SLUG/g" charts/values.yaml
-
helm upgrade --install k8s-example --namespace default ./charts/
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