From 648cec167fc46721e692ca268ca59129bfee43ef Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Wed, 20 Apr 2022 13:19:25 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6f9b2ca..9312062 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ stages: - build - test + - deploy buiild job: stage: build @@ -32,3 +33,12 @@ test job: when: always reports: junit: report.xml + +deploy-period: + stage: deploy + environment: production + script: + - ssh ahosking@192.168.1.19 "cd /home/ahosking/period && git pull origin master && exit" + only: + - master +