add woodpacker ci
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Vieille 2022-07-25 10:34:24 +02:00
parent 7892ce98d2
commit 16ab6bfece
Signed by: deblan
GPG key ID: 579388D585F70417

35
.woodpecker.yml Normal file
View file

@ -0,0 +1,35 @@
pipeline:
dependencies:
image: deblan/devenv
commands:
- npm install
when:
branch: [master, develop, feature/*]
event:
- push
- pull_request
build:
image: deblan/devenv
commands:
- make npm-build
when:
branch: [master, develop, feature/*]
event:
- push
- pull_request
release:
image: deblan/devenv
volumes:
- /var/www/html/artifacts:/var/www/html/artifacts
secrets: [app_certificate]
commands:
- mkdir -p "$HOME/.nextcloud/certificates"
- echo "$APP_CERTIFICATE" > "$HOME/.nextcloud/certificates/side_menu.key"
- export VERSION=$(grep "<version>" appinfo/info.xml | grep -o "[0-9]*\.[0-9]*\.[0-9]*" --color=never)
- export RELEASE_DIRECTORY="/var/www/html/artifacts/deblan/side_menu"
- make release
when:
branch: [master]