From 7d77bedbdaecd0db133aa0d98ce57c7eee510d2d Mon Sep 17 00:00:00 2001 From: Marc Riera Irigoyen Date: Tue, 30 Jun 2020 01:10:14 +0200 Subject: [PATCH] Add CI --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..80125d0 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +image: monachus/hugo + +variables: + GIT_SUBMODULE_STRATEGY: recursive + +before_script: + - apt-get update + - apt-get --yes install rsync + +build: + stage: build + script: + - hugo + artifacts: + paths: + - public + only: + - master + +deploy: + stage: deploy + script: + - rsync -hrv --delete public/ /var/opt/gitlab-runner/builds/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/ + only: + - master