We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

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
variables:
DOCKER_DRIVER: overlay
SPRING_PROFILES_ACTIVE: gitlab-ci
USER_GITLAB: Vinh
APP_NAME: DEMO
REPO: ci-cd-spring-boot
stages: stages:
- build - build
- docker - deploy
maven-build:
image: maven:3-jdk-8 before_script:
- chmod +x mvnw
build:
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