2021-07-11 09:42:07 +02:00
|
|
|
build:
|
|
|
|
image: ubuntu:latest
|
|
|
|
stage: build
|
|
|
|
script:
|
2021-07-11 09:42:48 +02:00
|
|
|
- apt update && apt install build-essential
|
2021-07-11 09:42:07 +02:00
|
|
|
- make all
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
expire_in: 1 week
|
|
|
|
|
|
|
|
|
2021-07-11 09:17:35 +02:00
|
|
|
deploy_production:
|
|
|
|
type: deploy
|
|
|
|
image: ubuntu:latest
|
|
|
|
environment:
|
|
|
|
name: production
|
|
|
|
url: timer.itsblue.de
|
|
|
|
script:
|
|
|
|
- apt update
|
2021-07-11 09:33:28 +02:00
|
|
|
- apt install -y openssh-client rsync
|
2021-07-11 09:17:35 +02:00
|
|
|
- chmod 700 $DEPLOYMENT_SSH_KEY
|
2021-07-11 09:42:07 +02:00
|
|
|
- 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
|
2021-07-11 09:17:35 +02:00
|
|
|
only:
|
|
|
|
- master
|