This repository has been archived on 2022-04-20. You can view files and clone it, but cannot push or open issues or pull requests.
app/.drone.yml
Jonas Franz b04307013f
All checks were successful
the build was successful
Start bin bash
2018-09-23 22:47:56 +02:00

101 lines
2.4 KiB
YAML

workspace:
base: /app
clone:
git:
image: plugins/git
depth: 50
tags: true
pipeline:
upload_to_macos:
image: appleboy/drone-scp
host: home.jonasfranz.software
secrets: [ ssh_username, ssh_key ]
port: 2222
source: ./
target: /tmp/drone_build_${DRONE_BUILD_NUMBER}
when:
event: [ push, tag]
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
group: build
pull: true
commands:
- flutter packages get
- make build-all
- mkdir apks
- mv build/app/outputs/apk/*/*.apk apks
when:
event: [ push, tag ]
build_ios:
image: appleboy/drone-ssh
group: build
host: home.jonasfranz.software
port: 2222
secrets: [ ssh_username, ssh_key ]
command_timeout: 900
script:
- /bin/bash
- echo "export PATH=/usr/local/bin:$PATH" >> ~/.bash_profile && source ~/.bash_profile
- export PATH=/Users/macosvm/flutter/bin:$PATH
- export EXPANDED_CODE_SIGN_IDENTITY=""
- cd /tmp/drone_build_${DRONE_BUILD_NUMBER}/ios
- pod install
- ls -lah
- echo "Installed pods in `pwd`"
- cd ..
- flutter packages get
- make build-ios-all
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 ]
clean_ios:
image: appleboy/drone-ssh
host: home.jonasfranz.software
port: 2222
secrets: [ ssh_username, ssh_key ]
script:
- rm -rf /tmp/drone_build_${DRONE_BUILD_NUMBER}
when:
status: [ failure, success ]
event: [ push, tag]