blob: 74ad96b4fde69231295336831f94f22e438e9a84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
stages:
- build
- deploy
variables:
WEBDAV_URL: https://dav.frcsm.de/www/
WEBDAV_REMOTE_PATH: html/
WEBDAV_USERNAME: $WEBDAV_USER
build:
stage: build
image: debian:testing
script:
- apt update -y
- apt install -y npm
- npm install
- npm run generate
artifacts:
paths:
- .output/
deploy:
stage: deploy
image:
name: rclone/rclone:latest
entrypoint: [""]
dependencies:
- build
script:
- "rclone sync --webdav-url ${WEBDAV_URL} --webdav-user ${WEBDAV_USERNAME} --webdav-pass $(echo -n \"${WEBDAV_PASSWORD}\" | rclone obscure -) ./.output/public :webdav:${WEBDAV_REMOTE_PATH}/"
|