Merge branch 'master' of ssh://ssh.itsblue.dev:10040/dorian/synced-timer
This commit is contained in:
commit
61cc21d199
1 changed files with 25 additions and 0 deletions
25
.gitlab-ci.yml
Normal file
25
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
build:
|
||||
image: ubuntu:latest
|
||||
stage: build
|
||||
script:
|
||||
- apt update && apt install -y build-essential
|
||||
- make all
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
expire_in: 1 week
|
||||
|
||||
|
||||
deploy_production:
|
||||
type: deploy
|
||||
image: ubuntu:latest
|
||||
environment:
|
||||
name: production
|
||||
url: timer.itsblue.de
|
||||
script:
|
||||
- apt update
|
||||
- apt install -y openssh-client rsync
|
||||
- chmod 700 $DEPLOYMENT_SSH_KEY
|
||||
- rsync -avz -e "ssh -i $DEPLOYMENT_SSH_KEY -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" ./public/ root@10.10.0.1:/opt/lamp/www/timer.itsblue.de
|
||||
only:
|
||||
- master
|
Loading…
Reference in a new issue