Skip to content
Snippets Groups Projects
Commit ab1d5294 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

CI: deploy to demo

parent 1e75ac71
No related branches found
No related tags found
No related merge requests found
Pipeline #322467 passed
......@@ -67,3 +67,15 @@ deploy_development:
DEPLOY_HOST: campusqr-dev.tugraz.at
DEPLOY_KEY: "$DEPLOY_SSH_KEY"
<<: *deploy_defaults
deploy_demo:
only:
refs:
- demo
environment:
name: demo
url: https://campusqr-demo.tugraz.at
variables:
DEPLOY_HOST: vpu01-demo.tugraz.at
DEPLOY_KEY: "$DEPLOY_SSH_KEY"
<<: *deploy_defaults
......@@ -32,6 +32,14 @@ host('development')
->set('rsync_src', $PROJECT_ROOT . '/dist')
->set('rsync_dest', '{{release_path}}');
host('demo')
->set('labels', ['stage' => 'demo'])
->setHostname('campusqr@vpu01-demo.tugraz.at')
->set('deploy_path', '/home/campusqr/demo/deploy/campus-qr')
->set('rsync', $rsync_config)
->set('rsync_src', $PROJECT_ROOT . '/dist')
->set('rsync_dest', '{{release_path}}');
task('restart-service', function () {
within('{{release_path}}', function () {
run('/home/campusqr/bin/shutdown.sh');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment