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}/"