Added drone (#2)
the build was successful Details

This commit is contained in:
konrad 2018-09-23 10:41:28 +00:00 committed by Gitea
parent 35db3db988
commit a5b8618d49
2 changed files with 58 additions and 1 deletions

57
.drone.yml Normal file
View File

@ -0,0 +1,57 @@
workspace:
base: /app
clone:
git:
image: plugins/git
depth: 50
tags: true
pipeline:
test:
image: nathansamson/flutter-builder-docker:v0.6.0
pull: true
commands:
- make test
when:
event: [ push, tag, pull_request ]
build:
image: nathansamson/flutter-builder-docker:v0.6.0
pull: true
commands:
- flutter packages get
- make build-all
- mkdir apks
- mv build/app/outputs/apk/*/*.apk apks
when:
event: [ push, 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: /${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 ]

View File

@ -4,7 +4,7 @@ description: Vikunja as Flutter cross platform app
version: 1.0.0+1
environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
sdk: ">=2.0.0-dev.63.0 <3.0.0"
dependencies:
flutter: