[TASK] update drone.yml
This commit is contained in:
parent
bfc736749f
commit
663a090b3f
16
.drone.yml
16
.drone.yml
@ -9,16 +9,16 @@ steps:
|
|||||||
- name: docker_sock
|
- name: docker_sock
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- docker build --no-cache -t gulp-node:${DRONE_COMMIT} -f Scripte/Dockerfile .
|
- docker build --no-cache -t gulp-node:1 -f Scripte/Dockerfile .
|
||||||
|
|
||||||
- name: Build Website
|
- name: Build Website
|
||||||
image: gulp-node:${DRONE_COMMIT}
|
image: gulp-node:1
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
- gulp
|
- gulp
|
||||||
- zip public.zip -r dist/*
|
- zip public.zip -r dist/*
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload To Gitea-Release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
base_url: https://git.chrosey.de
|
base_url: https://git.chrosey.de
|
||||||
@ -28,7 +28,15 @@ steps:
|
|||||||
- public.zip
|
- public.zip
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
|
- name: Upload to Nextcloud
|
||||||
|
image: vividboarder/drone-webdav
|
||||||
|
file: public.zip
|
||||||
|
destination: https://nextcloud.chrosey.de/remote.php/dav/files/chrosey/elkes_homepage/
|
||||||
|
secrets: [webdav_username, webdav_password]
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker_sock
|
- name: docker_sock
|
||||||
host:
|
host:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user