amethyst/.gitlab-ci.yml

42 lines
702 B
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:
- clone
2024-01-02 18:52:03 -05:00
- 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:
- cp -r ${CI_PROJECT_DIR}/* ${DEPLOY_PATH}
2024-01-02 19:30:12 -05:00
prestep:
stage: .pre
tags:
- shell
2024-01-02 19:31:59 -05:00
script:
2024-01-02 19:44:05 -05:00
- set -x
2024-01-02 19:31:59 -05:00
- cd ${CI_PROJECT_DIR}
2024-01-02 19:49:15 -05:00
- sed -E "s,(https://)(git.tablet.sh),\1pat:${PAT}@\2," -i .gitmodules
2024-01-02 19:30:12 -05:00
clone:
2024-01-02 19:16:13 -05:00
stage: clone
2024-01-02 19:22:54 -05:00
tags:
- shell
script:
- git submodule sync
- git submodule update --init --recursive