Add drone config
continuous-integration/drone/push Build is failing Details

This commit is contained in:
kolaente 2021-04-21 21:32:35 +02:00
parent 1ebcbbb645
commit 065d8cbeb7
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 40 additions and 0 deletions

40
.drone.yml Normal file
View File

@ -0,0 +1,40 @@
kind: pipeline
name: build
trigger:
branch:
- master
event:
- push
steps:
- name: build
image: node:12
pull: true
group: build-static
commands:
- yarn --production=false
- yarn build
- name: static
image: kolaente/zip
pull: true
commands:
- zip -r vikunja-theme.zip archetypes/ layouts/ static/ theme.toml
depends_on: [ build ]
- name: release
image: plugins/s3:1
pull: true
settings:
bucket: vikunja-releases
access_key:
from_secret: aws_access_key_id
secret_key:
from_secret: aws_secret_access_key
endpoint: https://s3.fr-par.scw.cloud
region: fr-par
path_style: true
source: vikunja-theme.zip
target: /theme/
depends_on: [ static ]