Add drone config
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
kolaente 2020-10-11 12:19:26 +02:00
parent 838622574b
commit a8d542a4c2
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 47 additions and 0 deletions

47
.drone.yml Normal file
View File

@ -0,0 +1,47 @@
kind: pipeline
name: release-latest
trigger:
branch:
- master
event:
- push
steps:
- name: fetch-tags
image: docker:git
commands:
- git fetch --tags
- name: build
image: electronuserland/builder:wine
pull: true
commands:
# TODO: Move to a yarn script
- wget https://dl.vikunja.io/frontend/vikunja-frontend-master.zip
- unzip vikunja-frontend-master.zip -d frontend
- sed -i 's/\/fonts/file\:\/\/fonts/g' frontend/index.html
- sed -i 's/\/js/file\:\/\/js/g' frontend/index.html
- sed -i 's/\/css/file\:\/\/css/g' frontend/index.html
- sed -i 's/\/images/file\:\/\/images/g' frontend/index.html
- sed -i "s/\/'images/'file\:\/\/images/g" frontend/js/*
- yarn install
- export BUILD_NUMBER=master
- yarn dist --linux --windows
- 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
strip_prefix: dist/
source: dist/*
target: /desktop/master/
depends_on: [ static ]