Commit 27adb6d6 authored by vinhmh98's avatar vinhmh98

first commit

parent 65c8c40d
Pipeline #30080 failed with stages
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
image: java:8
stages:
- build
- docker
maven-build:
image: maven:3-jdk-8
- deploy
before_script:
- chmod +x mvnw
build:
stage: build
srcipt: "mvn package -B"
articfacts:
script: ./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
applications:
- name: DEMO
random-route: true
memory: 1G
path: target/demo-0.0.1-SNAPSHOT.jar
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment