synced-timer/.gitlab-ci.yml

27 lines
616 B
YAML
Raw Normal View History

2021-07-11 09:42:07 +02:00
build:
2022-05-11 23:48:42 +02:00
image: ubuntu:20.04
2021-07-11 09:42:07 +02:00
stage: build
script:
2022-05-11 23:47:29 +02:00
- apt-get update
2022-05-12 17:40:10 +02:00
- apt-get install -y build-essential git
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
2022-05-11 23:48:42 +02:00
image: ubuntu:20.04
2021-07-11 09:17:35 +02:00
environment:
name: production
url: timer.itsblue.de
script:
2022-05-11 23:47:29 +02:00
- apt-get update
- apt-get install -y openssh-client rsync
2021-07-11 09:17:35 +02:00
- chmod 700 $DEPLOYMENT_SSH_KEY
2022-05-11 23:51:29 +02:00
- 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
2021-07-11 09:17:35 +02:00
only:
- master