deployment automatisierung

This commit is contained in:
Daniel Schubert 2019-02-13 11:40:14 +01:00
parent 0e7a93396d
commit 4d22530b10
3 changed files with 28 additions and 0 deletions

10
.deploy-ignore Normal file
View File

@ -0,0 +1,10 @@
- .git
- node_modules
- bower*
- linux-kurs.sublime*
- .gitignore
- deploy.sh
- .deploy-ignore
- ssh-nutzer.txt
- *.lock
- *.yml

9
deploy.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
deploy() {
git push && rsync -r --exclude-from=.deploy-ignore . pax2ero:/home/dany/www/schubertdaniel/linuxkurs
}
deploy && echo "Deployed" || echo "### some error #####"

9
gitlab-ci.yml Normal file
View File

@ -0,0 +1,9 @@
stages:
- deploy
pages:
stage: deploy
script:
- mkdir /home/dany/hallo
only:
- master