1
0
mirror of https://github.com/go-vikunja/app synced 2024-10-12 08:55:33 +00:00
app-mirror-github/.drone.yml

59 lines
1.2 KiB
YAML
Raw Normal View History

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
- 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 ]
test:
2018-11-05 15:43:30 +00:00
image: jonasfranz/flutter:master
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 ]