Commit 58ef8e48 authored by  Viraj  Shah's avatar Viraj Shah

Revert Gitlab.ci yaml file

parent a9e3d7fa
Pipeline #114385 canceled with stages
in 2 minutes
default:
image: gitlab.doc.ic.ac.uk:4567/td1518/simplewebapp
image: maven:latest
variables:
PORT: "5000"
......@@ -18,7 +17,9 @@ gitlab-deploy:
stage: deploy
script:
- mvn package
- sh target/bin/simplewebapp
- systemctl --user stop simple-webapp.service
- cp -r target/ /home/gitlab-runner/simple-webapp-deploy/target
- systemctl --user start simple-webapp.service
artifacts:
paths:
- target/
......@@ -28,4 +29,4 @@ heroku-deploy:
script:
- dpl --provider=heroku --app=vs3318-simplewebapp --api-key=$API_TOKEN
only:
- master
- master
\ 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