diff options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..08343ca --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,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 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}/html/" |