wiki-hackmeeting/.gitlab-ci.yml

36 lines
835 B
YAML
Raw Normal View History

2024-07-08 17:00:16 +02:00
image: registry.gitlab.com/pages/hugo:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
WEBDAV_REMOTE_PATH: html-es.hackmeeting.org
WEBDAV_USERNAME: es_hackmeeting
WEBDAV_URL: https://www.autistici.org/dav/es_hackmeeting
2024-07-09 15:09:08 +02:00
DEST_DIRECTORY: latest/hugo
2024-07-08 17:00:16 +02:00
stages:
- build
- push
before_script:
- hugo version
build:
stage: build
script:
2024-07-09 15:09:08 +02:00
- cp custom.html themes/blowfish/layouts/partials/home/custom.html
2024-07-08 17:00:16 +02:00
- hugo -D
artifacts:
paths:
- public
push:
stage: push
image:
name: rclone/rclone:latest
entrypoint: [""]
script:
- "rclone sync -v --retries 10 --exclude='hm/**' --webdav-url ${WEBDAV_URL} --webdav-user ${WEBDAV_USERNAME} --webdav-pass $(echo -n \"${WEBDAV_PASSWORD}\" | rclone obscure -) ./public :webdav:${WEBDAV_REMOTE_PATH}/${DEST_DIRECTORY}"
only:
- no-masters