I would like to deploy Spring Boot app from gitlab using Gitlab runner to Heroku. I find some tutorials but for ruby.
gitlab-ci.yml
image: maven:3-jdk-8
before_script:
- java -version
- mvn -version
variables:
MAVEN_OPTS: "-Dmaven.repo.local=.m2"
cache:
paths:
- .m2/
stages:
- install
- test
- deploy
project-install:
stage: install
script:
- mvn install -P gitlab
backend-test:
stage: test
script:
- mvn verify -pl backend -P itTest,gitlab
heroku-deploy:
????
I found maven heroku plugin but my project is under gitlab repository not heroku repository. Moreover i cannot find proper configuration for this plugin. I want to pass login and password via this plugin to connect to heroku.
My current config:
<plugin>
<groupId>com.heroku.sdk</groupId>
<artifactId>heroku-maven-plugin</artifactId>
<version>1.2.0</version>
<configuration>
<appName>app-name</appName>
<processTypes>
<web>java $JAVA_OPTS -jar target/*.jar</web>
</processTypes>
</configuration>
</plugin>
Maybe I could do continuous deployment. Can anyone help?
heroku-deploy:step look like for the Ruby example?