build: image: ubuntu:20.04 stage: build script: - apt-get update - apt-get install -y build-essential git - make all artifacts: paths: - public expire_in: 1 week deploy_production: type: deploy image: ubuntu:20.04 environment: name: production url: timer.itsblue.de script: - apt-get update - apt-get 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.34:/opt/lamp/www/timer.itsblue.de only: - master