2022-08-27 12:18:03 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: exec
|
2022-08-31 10:17:35 +00:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
commands:
|
2022-08-31 11:21:54 +00:00
|
|
|
# - flutter build apk --debug --split-per-abi
|
|
|
|
# - mv build/app/outputs/flutter-apk/*-debug.apk `pwd`
|
|
|
|
# - rename app pro.kherel.selfprivacy *.apk && rename debug "$DRONE_COMMIT" *.apk
|
|
|
|
# - ls *.apk
|
|
|
|
- echo $JAVA_HOME $ANDROID_HOME $ANDROID_SDK_ROOT
|
2022-08-31 10:17:35 +00:00
|
|
|
|
|
|
|
node:
|
|
|
|
server: builder
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: exec
|
2022-08-30 20:59:39 +00:00
|
|
|
name: release
|
2022-08-27 12:18:03 +00:00
|
|
|
|
|
|
|
steps:
|
2022-08-30 20:59:39 +00:00
|
|
|
- name: build
|
2022-08-27 12:18:03 +00:00
|
|
|
commands:
|
2022-08-30 20:15:18 +00:00
|
|
|
- nixos-container stop isolated
|
|
|
|
- nixos-container start isolated
|
2022-08-30 18:32:01 +00:00
|
|
|
- eval `ssh-agent -s`
|
2022-08-30 18:44:37 +00:00
|
|
|
- echo "$SSH_PRIVATE_KEY" | ssh-add -
|
2022-08-30 19:00:02 +00:00
|
|
|
- scp -r `pwd` isolated:/var/lib/builder
|
2022-08-31 10:17:35 +00:00
|
|
|
- ssh isolated "cd src && flutter build apk --release --split-per-abi"
|
2022-08-30 21:45:50 +00:00
|
|
|
- scp isolated:/var/lib/builder/src/build/app/outputs/flutter-apk/*-release.apk `pwd`
|
2022-08-30 18:42:37 +00:00
|
|
|
environment:
|
2022-08-30 18:43:59 +00:00
|
|
|
SSH_PRIVATE_KEY:
|
|
|
|
from_secret: SSH_PRIVATE_KEY
|
2022-08-27 21:05:13 +00:00
|
|
|
|
2022-08-30 21:13:49 +00:00
|
|
|
- name: deploy
|
|
|
|
commands:
|
2022-08-31 10:17:35 +00:00
|
|
|
- rename app pro.kherel.selfprivacy *.apk && rename release "$DRONE_TAG" *.apk
|
2022-08-30 21:45:50 +00:00
|
|
|
- ls *.apk
|
2022-08-30 21:13:49 +00:00
|
|
|
|
2022-08-31 10:17:35 +00:00
|
|
|
trigger:
|
|
|
|
ref:
|
|
|
|
include:
|
|
|
|
- refs/tags/v.*
|
|
|
|
|
2022-08-27 18:05:12 +00:00
|
|
|
node:
|
2022-08-27 20:59:33 +00:00
|
|
|
server: builder
|