.gitlab-ci.yml 451 Bytes
Newer Older
Benjamin Caure's avatar
Benjamin Caure committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
image: openjdk:8-stretch

stages:
- build
- deploy

build jar:
    stage: build
    script:
    - chmod a+x ./gradlew
    - ./gradlew -Pprod bootJar
    artifacts:
        paths:
        - build/libs/*.jar

push to cloudfoundry:
    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