Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CI-CD-Spring Boot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vinh
CI-CD-Spring Boot
Commits
27adb6d6
Commit
27adb6d6
authored
Nov 15, 2020
by
vinhmh98
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first commit
parent
65c8c40d
Pipeline
#30080
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
23 deletions
+27
-23
.gitlab-ci.yml
.gitlab-ci.yml
+22
-23
mainfest.yml
mainfest.yml
+5
-0
No files found.
.gitlab-ci.yml
View file @
27adb6d6
image
:
docker
services
:
-
docker:dind
variables
:
DOCKER_DRIVER
:
overlay
SPRING_PROFILES_ACTIVE
:
gitlab-ci
USER_GITLAB
:
Vinh
APP_NAME
:
DEMO
REPO
:
ci-cd-spring-boot
stages
:
-
build
-
docker
maven-build
:
image
:
maven:3-jdk-8
image
:
java:8
stages
:
-
build
-
deploy
before_script
:
-
chmod +x mvnw
build
:
stage
:
build
s
rcipt
:
"
mvn
package
-B"
arti
c
facts
:
s
cript
:
./mvnw package
artifacts
:
paths
:
-
target/*.jar
docker-build.
stage
:
docker
srcipt
:
-
docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.pm.opentechiz.com
-
docker build -t registry.pm.opentechiz.com/Vinh/$REPO
-
docker push registry.pm.opentechiz.com/Vinh/$REPO
\ No newline at end of file
-
target/demo-0.0.1-SNAPSHOT.jar
production
:
stage
:
deploy
script
:
-
curl --location "https://cli.run.pivotal.io/stable?release=linux64-binary&source=github" | tar zx
-
./cf login -u $CF_USERNAME -p $CF_PASSWORD -a api.run.pivotal.io
-
./cf push
only
:
-
master
\ No newline at end of file
mainfest.yml
0 → 100644
View file @
27adb6d6
applications
:
-
name
:
DEMO
random-route
:
true
memory
:
1G
path
:
target/demo-0.0.1-SNAPSHOT.jar
\ 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