selfprivacy.org.app/.drone.yml

51 lines
1 KiB
YAML
Raw Normal View History

kind: pipeline
type: exec
2022-08-31 10:17:35 +00:00
name: ci
steps:
- name: build
commands:
2022-08-31 11:35:44 +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
2022-08-31 10:17:35 +00:00
2022-08-31 11:55:54 +00:00
trigger:
event:
- push
- pull_request
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
steps:
2022-08-30 20:59:39 +00:00
- name: build
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 -
- 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 11:40:33 +00:00
- rename app pro.kherel.selfprivacy *.apk && rename release "$DRONE_SEMVER" *.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:
2022-08-31 11:35:44 +00:00
event:
- tag
2022-08-31 10:17:35 +00:00
2022-08-27 18:05:12 +00:00
node:
2022-08-27 20:59:33 +00:00
server: builder