Skip to content
Snippets Groups Projects
Commit 4f2c5bae authored by Robert Czechowski's avatar Robert Czechowski
Browse files

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

parent 89edc1f1
Branches
Tags
No related merge requests found
Pipeline #46 passed
......@@ -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/"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment