update ci to be able to access private repository
This commit is contained in:
parent
d5399b3205
commit
0cf6257ac8
@ -1,5 +1,3 @@
|
||||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: recursive
|
||||
include:
|
||||
- project: 'templates/hugo-obsidian'
|
||||
file: '/action.yml'
|
||||
@ -10,6 +8,7 @@ include:
|
||||
root: "."
|
||||
- local: "/.gitlab/hugo.template.yml"
|
||||
stages:
|
||||
- clone
|
||||
- index
|
||||
- setup-hugo
|
||||
- deploy
|
||||
@ -17,3 +16,9 @@ deploy:
|
||||
stage: deploy
|
||||
script:
|
||||
- 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
|
Loading…
Reference in New Issue
Block a user