diff options
author | karthik <kskarthik@gitlab.io> | 2019-12-07 14:34:29 +0300 |
---|---|---|
committer | karthik <kskarthik@gitlab.io> | 2019-12-07 14:34:29 +0300 |
commit | 95e1909de873a73ce87a37b4f2a57b788caeab63 (patch) | |
tree | 7e2ea78b9e286a69f0cd50b5db8688e454fb58f0 | |
parent | 0a79541b13fe2f0e15649278719945f3502af9c3 (diff) |
fix ci
-rw-r--r-- | .gitlab-ci.yml | 22 | ||||
-rw-r--r-- | build.sh | 6 |
2 files changed, 12 insertions, 16 deletions
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/ |