webbed-site/.gitlab-ci.yml

30 lines
1.2 KiB
YAML
Raw Normal View History

2024-02-20 13:15:54 -06:00
# 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/Zola.gitlab-ci.yml
2024-02-20 00:12:09 -06:00
2024-02-20 13:15:54 -06:00
# Prefer to copy-paste this template instead of include it to ensure forward compatibility
2024-02-20 00:12:09 -06:00
2024-02-20 13:15:54 -06:00
---
# From: https://www.getzola.org/documentation/deployment/gitlab-pages/
# Source template is slightly modified to be self-contained
2024-02-20 00:12:09 -06:00
2024-02-19 20:36:25 -06:00
pages:
2024-02-20 13:15:54 -06:00
image: alpine:latest
variables:
# This variable will ensure that the CI runner pulls in your theme from the submodule
GIT_SUBMODULE_STRATEGY: recursive
before_script:
# Install the zola package from the alpine community repositories
- apk add --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ zola
2024-02-19 20:36:25 -06:00
script:
2024-02-20 13:15:54 -06:00
# Execute zola build
2024-02-20 15:22:32 -06:00
- zola build --"https://peachmoon.moe"
2024-02-19 20:36:25 -06:00
artifacts:
paths:
2024-02-20 13:15:54 -06:00
# Path of our artifacts
2024-02-19 20:36:25 -06:00
- public
2024-02-20 13:15:54 -06:00
# This config will only publish changes that are pushed on the default branch
2024-02-19 20:36:25 -06:00
rules:
2024-02-20 13:15:54 -06:00
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
environment: production