From a27476542e16092ea60941ca8290a2bc00e1c560 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sun, 11 Jul 2021 07:42:07 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c1a682..7d43c83 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: type: deploy image: ubuntu:latest @@ -8,6 +20,6 @@ deploy_production: - 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 + - 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: - master