added server deploy workflow

This commit is contained in:
Ell 2023-08-17 12:42:58 +02:00
parent 1e4f7ca12c
commit f55bb14f55

13
.woodpecker/server.yml Normal file
View file

@ -0,0 +1,13 @@
when:
path: "server/public/**"
steps:
deploy-server:
image: debian:latest
when:
- event: [push, manual]
branch: main
commands:
- rm -rfv /var/www/jsp/public/*
- cp -rv server/. /var/www/jsp
volumes:
- /var/www/jsp:/var/www/jsp