From cced1dbc1820f2b2a36a9af1459bfe1dc223f3b0 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sun, 11 Jul 2021 07:17:35 +0000 Subject: [PATCH 1/9] Add new file --- .gitlab-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..2604558 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,13 @@ +deploy_production: + type: deploy + image: ubuntu:latest + environment: + name: production + url: timer.itsblue.de + script: + - apt update + - apt install -y openssh-client + - chmod 700 $DEPLOYMENT_SSH_KEY + - scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i $DEPLOYMENT_SSH_KEY -r ./* root@10.10.0.1:/opt/lamp/www/timer.itsblue.de + only: + - master From 6d8763b3661ff07a76e82b043d144455d6991efb Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sun, 11 Jul 2021 07:27:03 +0000 Subject: [PATCH 2/9] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2604558..9131e2c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,6 @@ deploy_production: - apt update - apt install -y openssh-client - chmod 700 $DEPLOYMENT_SSH_KEY - - scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i $DEPLOYMENT_SSH_KEY -r ./* root@10.10.0.1:/opt/lamp/www/timer.itsblue.de + - scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i $DEPLOYMENT_SSH_KEY -r ./. root@10.10.0.1:/opt/lamp/www/timer.itsblue.de only: - master From fd7d193508bfc3c700e98bce5e6533312d58a419 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sun, 11 Jul 2021 07:27:52 +0000 Subject: [PATCH 3/9] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9131e2c..b8855ed 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,6 @@ deploy_production: - apt update - apt install -y openssh-client - chmod 700 $DEPLOYMENT_SSH_KEY - - scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i $DEPLOYMENT_SSH_KEY -r ./. root@10.10.0.1:/opt/lamp/www/timer.itsblue.de + - scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i $DEPLOYMENT_SSH_KEY -rp ./. root@10.10.0.1:/opt/lamp/www/timer.itsblue.de only: - master From 1964905c823a886918b8c05d6e4c7e5a9ce9ca1f Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sun, 11 Jul 2021 07:28:56 +0000 Subject: [PATCH 4/9] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b8855ed..b6acf80 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,6 @@ deploy_production: - apt update - apt install -y openssh-client - chmod 700 $DEPLOYMENT_SSH_KEY - - scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i $DEPLOYMENT_SSH_KEY -rp ./. root@10.10.0.1:/opt/lamp/www/timer.itsblue.de + - scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i $DEPLOYMENT_SSH_KEY -rp . root@10.10.0.1:/opt/lamp/www/timer.itsblue.de only: - master From 1f961df3a866496b1b9af257e82b2039d31a1adb Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sun, 11 Jul 2021 07:32:40 +0000 Subject: [PATCH 5/9] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b6acf80..6d47d59 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,6 @@ deploy_production: - apt update - apt install -y openssh-client - chmod 700 $DEPLOYMENT_SSH_KEY - - scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i $DEPLOYMENT_SSH_KEY -rp . 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" ./ root@10.10.0.1:/opt/lamp/www/timer.itsblue.de only: - master From 70413086fc8102777a017541f0ced1be09b0c315 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sun, 11 Jul 2021 07:33:28 +0000 Subject: [PATCH 6/9] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6d47d59..2c1a682 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ deploy_production: url: timer.itsblue.de script: - apt update - - apt install -y openssh-client + - 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: From a27476542e16092ea60941ca8290a2bc00e1c560 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sun, 11 Jul 2021 07:42:07 +0000 Subject: [PATCH 7/9] 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 From 48bd7c2c43df0f5a35c45eb94337d753cb6143fc Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sun, 11 Jul 2021 07:42:48 +0000 Subject: [PATCH 8/9] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7d43c83..18f6499 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ build: image: ubuntu:latest stage: build script: - - apt update && sudo apt install build-essential + - apt update && apt install build-essential - make all artifacts: paths: From c8e045809bf332f109243868bfac647b0cbd6b00 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sun, 11 Jul 2021 07:43:27 +0000 Subject: [PATCH 9/9] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 18f6499..b57e9bd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ build: image: ubuntu:latest stage: build script: - - apt update && apt install build-essential + - apt update && apt install -y build-essential - make all artifacts: paths: