From 95e1909de873a73ce87a37b4f2a57b788caeab63 Mon Sep 17 00:00:00 2001 From: karthik Date: Sat, 7 Dec 2019 17:04:29 +0530 Subject: fix ci --- .gitlab-ci.yml | 22 ++++++---------------- build.sh | 6 ++++++ 2 files changed, 12 insertions(+), 16 deletions(-) create mode 100644 build.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7501909..d1d67de 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,22 +1,12 @@ image: registry.gitlab.com/pages/hugo:latest -#variables: -# GIT_SUBMODULE_STRATEGY: recursive - -#test: -# script: -# - hugo - pages: + before_script: + - build.sh script: - - apk add git - - git clone https://github.com/gohugoio/hugobasicexample.git && mkdir -p hugobasicexample/themes/monopriv - - cp -r archetypes exampleSite images layouts resources static theme.toml hugobasicexample/themes/monopriv/ && ls - - cd hugobasicexample/ - - mv themes/monopriv/exampleSite/config.toml . - - hugo -b https://kskarthik.gitlab.io/monopriv/ - artifacts: + - hugo -b https://kskarthik.gitlab.io/monopriv/ + artifacts: paths: - public - only: - - master + only: + - master diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..9056aa2 --- /dev/null +++ b/build.sh @@ -0,0 +1,6 @@ +apk add git +git clone https://github.com/gohugoio/hugobasicexample.git && mkdir -p hugobasicexample/themes/monopriv +cp -r archetypes exampleSite images layouts resources static theme.toml hugobasicexample/themes/monopriv/ && ls +cd hugobasicexample/ +mv themes/monopriv/exampleSite/config.toml . +hugo -b https://kskarthik.gitlab.io/monopriv/ -- cgit v1.2.3