Commit f77e4123 authored by root's avatar root
Browse files

[mk3918][ieo119] Deploy to Heroku, modify pom.xml to use earlier maven plugin version

parent aae0821d
Pipeline #170840 passed with stages
in 47 seconds
variables:
PORT_NO: 5000
LOGIN: ieo119
API_KEY: 04f2ee5c-5db9-4f8d-8965-295006a946c1
stages:
- build
- test
- deploy-staging
- deploy
build-job:
stage: build
script:
- echo "Killing process at port $PORT_NO."
- fuser -k $PORT_NO/tcp
#- fuser -k $PORT_NO/tcp
- echo "Buildling."
- mvn compile
......@@ -15,11 +23,18 @@ test-job:
- echo "Running tests."
- mvn test
deploy-prod:
stage: deploy
deploy-test:
stage: deploy-staging
script:
- echo "Running web app."
- mvn package
- echo "Deploy to staging envirnment."
- export PORT=$PORT_NO
- mvn package
- screen -m -d sh target/bin/simplewebapp
deploy-prod:
stage: deploy
script:
- echo "Deploy to production."
- dpl --provider=heroku --app=$LOGIN-simplewebapp --api-key=$API_KEY
web: sh target/bin/simplewebapp
......@@ -29,8 +29,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>9</source>
<target>9</target>
<source>8</source>
<target>8</target>
<useSystemClassLoader>false</useSystemClassLoader>
</configuration>
</plugin>
......
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