Update ci
This commit is contained in:
parent
2ad7576d8a
commit
fc8ef06672
1 changed files with 4 additions and 3 deletions
|
@ -2,7 +2,8 @@ build:
|
||||||
image: ubuntu:latest
|
image: ubuntu:latest
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- apt update && apt install -y build-essential
|
- apt-get update
|
||||||
|
- apt-get install -y build-essential
|
||||||
- make all
|
- make all
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
@ -17,8 +18,8 @@ deploy_production:
|
||||||
name: production
|
name: production
|
||||||
url: timer.itsblue.de
|
url: timer.itsblue.de
|
||||||
script:
|
script:
|
||||||
- apt update
|
- apt-get update
|
||||||
- apt install -y openssh-client rsync
|
- apt-get install -y openssh-client rsync
|
||||||
- chmod 700 $DEPLOYMENT_SSH_KEY
|
- 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
|
- 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:
|
only:
|
||||||
|
|
Loading…
Reference in a new issue