amethyst/.gitlab-ci.yml

44 lines
1.1 KiB
YAML
Raw Normal View History

2024-01-02 19:30:12 -05:00
variables:
GIT_SUBMODULE_STRATEGY: none
2024-01-02 18:52:03 -05:00
include:
2024-01-02 18:56:01 -05:00
- project: 'templates/hugo-obsidian'
file: '/action.yml'
2024-01-02 18:52:03 -05:00
inputs:
index: "true"
input: content
output: assets/indices
2024-01-02 18:56:01 -05:00
root: "."
2024-01-02 18:53:54 -05:00
- local: "/.gitlab/hugo.template.yml"
2024-01-02 19:30:12 -05:00
2024-01-02 18:52:03 -05:00
stages:
- index
- setup-hugo
- deploy
2024-01-02 19:30:12 -05:00
2024-01-02 18:52:03 -05:00
deploy:
stage: deploy
2024-01-02 19:22:54 -05:00
tags:
- shell
2024-01-02 18:52:03 -05:00
script:
2024-01-02 22:26:15 -05:00
- cp -r ${CI_PROJECT_DIR}/public/* ${DEPLOY_PATH}
2024-01-02 19:30:12 -05:00
clone:
2024-01-02 21:28:54 -05:00
variables:
GIT_SUBMODULE_STRATEGY: none
2024-01-02 20:34:12 -05:00
stage: .pre
2024-01-02 19:22:54 -05:00
tags:
- shell
2024-01-02 20:11:02 -05:00
before_script:
2024-01-02 23:34:55 -05:00
- set -x
2024-01-02 23:42:45 -05:00
#- "varia=$(git config --local --list | grep -iE '^url') [[ -n $varia ]] && (echo $varia | sed -E 's,=.*$,,gm' | xargs -d $'\n' -I '{}' git config --local --unset '{}')"
2024-01-02 23:53:30 -05:00
- sed -E "s,git@(git.tablet.sh):,https://gitlab-ci-token:\${CI_JOB_TOKEN}@\1/," -i .gitmodules
2024-01-02 23:20:41 -05:00
##- git config --local submodule.content.url "https://deployer:${DEPLOY_TOKEN}@git.tablet.sh/the-btfash-foundation/tablet.sh"
script:
2024-01-02 20:58:52 -05:00
- git submodule sync
2024-01-02 21:51:06 -05:00
- git remote -v
2024-01-02 21:49:47 -05:00
- git submodule sync
2024-01-02 22:42:27 -05:00
- git submodule status
2024-01-02 22:58:18 -05:00
- git submodule update --remote --init --recursive
2024-01-02 22:42:27 -05:00
- git submodule init
2024-01-02 22:34:48 -05:00
- ls -l themes