From 5cbee19b9b8ad00d6c09685b6314b9ecf2322f2e Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Thu, 25 Oct 2018 13:14:57 +0000 Subject: [PATCH] Add .gitlab-ci.yml --- .gitlab-ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..6ae3537 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +# This file is a template, and might need editing before it works on your project. +# Full project: https://gitlab.com/pages/hugo +image: dettmering/hugo-build + +variables: + GIT_SUBMODULE_STRATEGY: recursive + +before_script: + - apk --no-cache upgrade && apk --no-cache add samba samba-common-tools supervisor + +build: + script: + - hugo + - smbclient '//192.168.30.10/pages' $PASS -U $USER -c 'prompt OFF; recurse ON; rmdir '$CI_PROJECT_NAME';' + - smbclient '//192.168.30.10/pages' $PASS -U $USER -c 'prompt OFF; recurse ON; mkdir '$CI_PROJECT_NAME'; cd '$CI_PROJECT_NAME'; lcd public; mput *' + only: + - master + \ No newline at end of file