2018-09-23 10:41:28 +00:00
|
|
|
workspace:
|
|
|
|
base: /app
|
|
|
|
|
|
|
|
clone:
|
|
|
|
git:
|
|
|
|
image: plugins/git
|
|
|
|
depth: 50
|
|
|
|
tags: true
|
|
|
|
|
|
|
|
pipeline:
|
|
|
|
build:
|
2018-11-05 15:43:30 +00:00
|
|
|
image: jonasfranz/flutter:master
|
2018-09-23 10:41:28 +00:00
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- flutter packages get
|
2018-10-15 17:16:47 +00:00
|
|
|
- make format-check
|
2018-09-23 10:41:28 +00:00
|
|
|
- make build-all
|
|
|
|
- mkdir apks
|
2018-09-23 16:04:00 +00:00
|
|
|
- mv build/app/outputs/apk/*/*/*.apk apks
|
2018-09-23 10:41:28 +00:00
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
2018-10-15 17:16:47 +00:00
|
|
|
|
|
|
|
test:
|
2018-11-05 15:43:30 +00:00
|
|
|
image: jonasfranz/flutter:master
|
2018-10-15 17:16:47 +00:00
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- make test
|
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
2018-09-23 10:41:28 +00:00
|
|
|
|
|
|
|
# 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-app
|
|
|
|
endpoint: https://storage.kolaente.de
|
|
|
|
path_style: true
|
|
|
|
strip_prefix: apks/
|
|
|
|
source: apks/*
|
|
|
|
target: /${DRONE_TAG##v}
|
|
|
|
when:
|
|
|
|
event: [ tag ]
|
|
|
|
|
|
|
|
# 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-app
|
|
|
|
endpoint: https://storage.kolaente.de
|
|
|
|
path_style: true
|
|
|
|
strip_prefix: apks/
|
|
|
|
source: apks/*
|
|
|
|
target: /master
|
|
|
|
when:
|
|
|
|
event: [ push ]
|
|
|
|
branch: [ master ]
|