Commit 4f2c5bae authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Update .gitlab-ci.yml: Add Deploy (WIP)

parent 89edc1f1
Pipeline #46 passed with stages
in 15 minutes and 45 seconds
......@@ -4,6 +4,7 @@ stages:
- test
- doc
- build
- deploy
variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo
......@@ -37,10 +38,15 @@ pages:
only:
- master
deploy_staging:
type: deploy
environment:
name: staging
build:
stage: build
script:
- cargo build --release
only:
- master
deploy:
stage: deploy
script:
- ssh medald@jim.test.bwinf.de "sudo /bin/systemctl stop medal && exit"
- "scp target/release/medal medald@jim.test.bwinf.de:medal/"
......
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