From 7a647cc1160f0a8e1ff53c6840dde8b6b2ffe9e1 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Tue, 14 Apr 2020 21:09:33 +0200 Subject: [PATCH] Test CI --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..cf3a783 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +image: java:8 + +stages: + - build + - deploy + +before_script: + - chmod +x mvnw + +build: + stage: build + script: ./mvnw package + artifacts: + paths: + - 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