Commit 5f277961 authored by mh's avatar mh
Browse files

make sure we checkout submodules and fix sed cmd

parent ead50ceb
Pipeline #99 failed with stages
in 1 minute and 11 seconds
......@@ -8,6 +8,7 @@ stages:
variables:
DEPLOY_BASE: dev/review
DEPLOY_SLUG: dev/review/$CI_PROJECT_NAME/$CI_COMMIT_REF_SLUG
GIT_SUBMODULE_STRATEGY: recursive
build:
tags:
......@@ -15,7 +16,7 @@ build:
script:
# Set hugo's 'baseurl' option in case we're not dealing with the master branch.
- 'if ! [ "$CI_COMMIT_REF_SLUG" == "master" ]; then
sed -i "s@^baseURL =.*@baseURL = "http://docs.immerda.ch/$DEPLOY_SLUG@" config.toml;
sed -i "s@^baseURL =.*@baseURL = \"http://docs.immerda.ch/${DEPLOY_SLUG}/@\"" config.toml;
fi'
- hugo
- tar cfz site.tar.gz public
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment