kind: pipeline type: docker name: default steps: - name: Restore Cache image: drillster/drone-volume-cache volumes: - name: cache path: /cache settings: restore: true mount: - ./node_modules - ./dist - name: Build Website image: node:14 commands: - npm install -g gulp - npm install - gulp - zip public.zip -r dist/* - name: Rebuild Cache image: drillster/drone-volume-cache volumes: - name: cache path: /cache settings: rebuild: true mount: - ./node_modules - ./dist - name: Upload To Gitea-Release image: plugins/gitea-release settings: base_url: https://git.chrosey.de api_key: from_secret: gitea_token files: - public.zip when: event: tag - name: Upload to Nextcloud image: gam2046/drone-webdav settings: file: public.zip destination: https://nextcloud.chrosey.de/remote.php/dav/files/chrosey/elkes_homepage/ username: from_secret: webdav_username password: from_secret: webdav_password when: event: tag volumes: - name: docker_sock host: path: /var/run/docker.sock - name: cache host: path: /volume2/docker2/dronecache