update ci to be able to access private repository

This commit is contained in:
parent d5399b3205
commit 0cf6257ac8
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -1,5 +1,3 @@
variables:
GIT_SUBMODULE_STRATEGY: recursive
include:
- project: 'templates/hugo-obsidian'
file: '/action.yml'
@ -10,10 +8,17 @@ include:
root: "."
- local: "/.gitlab/hugo.template.yml"
stages:
- clone
- index
- setup-hugo
- deploy
deploy:
stage: deploy
script:
- cp -r ${CI_PROJECT_DIR}/* ${DEPLOY_PATH}
- cp -r ${CI_PROJECT_DIR}/* ${DEPLOY_PATH}
clone:
script:
- cd ${CI_PROJECT_DIR}
- sed -iE -e "s,(https://)(git.tablet.sh),\1pat:\${PAT}@\2," .gitmodules
- git submodule sync
- git submodule update --init --recursive