1
0

Added drone config

This commit is contained in:
konrad
2018-09-08 17:44:29 +02:00
parent a2a199e5e9
commit c63fd7c20f
2 changed files with 77 additions and 7 deletions

56
.drone.yml Normal file
View File

@ -0,0 +1,56 @@
workspace:
base: /srv/app
clone:
git:
image: plugins/git
depth: 50
tags: true
build:
image: node
pull: true
group: build-static
commands:
- npm install
- npm run lint
- npm run build
when:
event: [push, tag, pull_request]
static:
image: karalabe/xgo-latest:latest
pull: true
commands:
- cd dist
- zip -r ../vikunja-frontend.zip *
- cd ..
when:
event: [tag, push]
# Push the releases to our pseudo-s3-bucket
release:
image: plugins/s3:1
pull: true
secrets: [ aws_access_key_id, aws_secret_access_key ]
bucket: vikunja
endpoint: https://storage.kolaente.de
path_style: true
source: vikunja-frontend.zip
target: /${DRONE_TAG##v}
when:
event: [ tag ]
release:
image: plugins/s3:1
pull: true
secrets: [ aws_access_key_id, aws_secret_access_key ]
bucket: vikunja
endpoint: https://storage.kolaente.de
path_style: true
source: vikunja-frontend.zip
target: /master
when:
event: [ push ]
branch: [ master ]