amethyst/.gitlab-ci.yml

45 lines
1.1 KiB
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}/public/* ${DEPLOY_PATH}
clone:
variables:
GIT_SUBMODULE_STRATEGY: none
stage: .pre
tags:
- shell
before_script:
- set -x
- varia=$(git config --local --list | grep -iE '^url')
- "[[ -n $varia ]] && (echo $varia | sed -E 's,=.*$,,gm' | xargs -d $'\n' -I '{}' git config --local --unset '{}')"
- git config --local url."https://deployer:${DEPLOY_TOKEN}@git.tablet.sh/".insteadOf "git@git.tablet.sh:"
##- git config --local submodule.content.url "https://deployer:${DEPLOY_TOKEN}@git.tablet.sh/the-btfash-foundation/tablet.sh"
script:
- git submodule sync
- git remote -v
- git submodule sync
- git submodule status
- git submodule update --remote --init --recursive
- git submodule init
- ls -l themes