restaurant1894/.drone.yml

72 lines
1.3 KiB
YAML

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 DockerImage
image: docker
volumes:
- name: docker_sock
path: /var/run/docker.sock
commands:
- docker build --no-cache -t gulp-node:1 -f Scripte/Dockerfile .
- name: Build Website
image: gulp-node:1
commands:
- 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