Merge pull request 'add ci/cd conf (drone)' (#71) from develop into master
All checks were successful
continuous-integration/drone/push Build is passing
metroline continuous-integration/metroline

Reviewed-on: #71
This commit is contained in:
Simon Vieille 2021-11-03 19:20:36 +01:00
commit ff5ba04217

36
.drone.yml Normal file
View file

@ -0,0 +1,36 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: dependencies
image: deblan/devenv
commands:
- npm install
when:
event:
- push
- name: build
image: deblan/devenv
volumes:
- name: artefacts
path: /artefacts
environment:
APP_CERTIFICATE:
from_secret: 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="/artefacts/deblan/side_menu"
- make release
when:
branch:
- master
volumes:
- name: artefacts
host:
path: /var/www/html/_artefacts