13 lines
403 B
YAML
13 lines
403 B
YAML
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" ./ root@10.10.0.1:/opt/lamp/www/timer.itsblue.de
|
|
only:
|
|
- master
|