]> xenbits.xensource.com Git - www-xenproject-org.git/commitdiff
add content to gitlab.yaml
authorArnaud Guéras <arnaudgs@gmail.com>
Mon, 16 Sep 2024 04:31:02 +0000 (06:31 +0200)
committerArnaud Guéras <arnaudgs@gmail.com>
Mon, 16 Sep 2024 04:31:02 +0000 (06:31 +0200)
Signed-off-by: Arnaud Guéras <arnaudgs@gmail.com>
.gitlab-ci.yml

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..b57ed00d15146f5fb9a7037fa34ab4d85fff9dd1 100644 (file)
@@ -0,0 +1,46 @@
+# This file is a template, and might need editing before it works on your project.
+# To contribute improvements to CI/CD templates, please follow the Development guide at:
+# https://docs.gitlab.com/ee/development/cicd/templates.html
+# This specific template is located at:
+# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Pages/Hugo.gitlab-ci.yml
+
+---
+#
+# Before using this .gitlab-ci.yml:
+#
+# - This example uses the latest Docker image, but you might want to use the
+#   exact version to avoid any broken pipelines.
+#   All available Hugo versions are listed under https://gitlab.com/pages/hugo/container_registry.
+# - Read about the difference between hugo and hugo_extended
+#   https://gitlab.com/pages/hugo/-/blob/main/README.md#hugo-vs-hugo_extended.
+#   If you don't know what to use, better use the extended version.
+# - To change the theme, see
+#   https://gitlab.com/pages/hugo/-/blob/main/README.md#use-a-custom-theme.
+#
+default:
+  image: "${CI_TEMPLATE_REGISTRY_HOST}/pages/hugo/hugo_extended:0.132.2"
+
+variables:
+  GIT_SUBMODULE_STRATEGY: recursive
+  HUGO_ENV: production
+
+  #before_script:
+  #  - apk add --no-cache go curl bash nodejs
+  #  ## Uncomment the following if you use PostCSS. See https://gohugo.io/hugo-pipes/postcss/
+  #  # - npm install postcss postcss-cli autoprefixer
+
+test:
+  script:
+    - hugo
+  rules:
+    - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
+
+deploy:
+  script:
+    - hugo
+    - tar caf site.tar.gz public
+  artifacts:
+    paths:
+      - site.tar.gz
+  rules:
+    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH