Commit 27adb6d6 authored by vinhmh98's avatar vinhmh98

first commit

parent 65c8c40d
Pipeline #30080 failed with stages
image: docker image: java:8
services:
- docker:dind stages:
variables: - build
DOCKER_DRIVER: overlay - deploy
SPRING_PROFILES_ACTIVE: gitlab-ci
USER_GITLAB: Vinh before_script:
APP_NAME: DEMO - chmod +x mvnw
REPO: ci-cd-spring-boot
stages: build:
- build
- docker
maven-build:
image: maven:3-jdk-8
stage: build stage: build
srcipt: "mvn package -B" script: ./mvnw package
articfacts: artifacts:
paths: paths:
- target/*.jar - target/demo-0.0.1-SNAPSHOT.jar
docker-build.
stage: docker production:
srcipt: stage: deploy
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.pm.opentechiz.com script:
- docker build -t registry.pm.opentechiz.com/Vinh/$REPO - curl --location "https://cli.run.pivotal.io/stable?release=linux64-binary&source=github" | tar zx
- docker push registry.pm.opentechiz.com/Vinh/$REPO - ./cf login -u $CF_USERNAME -p $CF_PASSWORD -a api.run.pivotal.io
\ No newline at end of file - ./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