38 lines
857 B
YAML
38 lines
857 B
YAML
variables:
|
|
GIT_SUBMODULE_STRATEGY: none
|
|
|
|
include:
|
|
- project: 'templates/hugo-obsidian'
|
|
file: '/action.yml'
|
|
inputs:
|
|
index: "true"
|
|
input: content
|
|
output: assets/indices
|
|
root: "."
|
|
- local: "/.gitlab/hugo.template.yml"
|
|
|
|
stages:
|
|
- index
|
|
- setup-hugo
|
|
- deploy
|
|
|
|
deploy:
|
|
stage: deploy
|
|
tags:
|
|
- shell
|
|
script:
|
|
- cp -r ${CI_PROJECT_DIR}/* ${DEPLOY_PATH}
|
|
|
|
clone:
|
|
stage: .pre
|
|
tags:
|
|
- shell
|
|
before_script:
|
|
- set -x
|
|
- echo "hi"
|
|
#- git config --global --unset credential.helper
|
|
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@git.tablet.sh/".insteadOf "git@git.tablet.sh:"
|
|
script:
|
|
- git submodule sync
|
|
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@git.tablet.sh/".insteadOf "git@git.tablet.sh:"
|
|
- git submodule update --init --recursive |