Update .gitlab-ci.yml
This commit is contained in:
parent
70413086fc
commit
a27476542e
1 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,15 @@
|
||||||
|
build:
|
||||||
|
image: ubuntu:latest
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- apt update && sudo apt install build-essential
|
||||||
|
- make all
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
expire_in: 1 week
|
||||||
|
|
||||||
|
|
||||||
deploy_production:
|
deploy_production:
|
||||||
type: deploy
|
type: deploy
|
||||||
image: ubuntu:latest
|
image: ubuntu:latest
|
||||||
|
@ -8,6 +20,6 @@ deploy_production:
|
||||||
- apt update
|
- apt update
|
||||||
- apt install -y openssh-client rsync
|
- apt 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" ./ 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:
|
||||||
- master
|
- master
|
||||||
|
|
Loading…
Reference in a new issue