From 3dbdaa646a91f2aa1ac054df3eb6852c1df4d86a Mon Sep 17 00:00:00 2001 From: Eliott Sammier <eliott.sammier@tetras-libre.fr> Date: Wed, 3 Jul 2024 13:20:00 +0000 Subject: [PATCH] Add Gitlab-CI pipeline config --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..32b0402 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +# From template at https://gitlab.com/pages/hugo + +default: + image: "${CI_TEMPLATE_REGISTRY_HOST}/pages/hugo/hugo_extended:0.128.1" + +variables: + GIT_SUBMODULE_STRATEGY: recursive # include Hugo themes + HUGO_ENV: production + +test: + script: + - hugo + rules: + - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH + +pages: + script: + - hugo + artifacts: + paths: + - public + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + environment: production -- GitLab