Update .gitlab-ci.yml

This commit is contained in:
Dorian Zedler 2021-07-11 07:42:07 +00:00
parent 70413086fc
commit a27476542e

View file

@ -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