selfprivacy.org.app/.drone.yml

26 lines
685 B
YAML
Raw Normal View History

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
- ssh isolated "cd src && flutter build apk --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`
- rename app pro.kherel.selfprivacy *.apk && rename release `git rev-parse --short HEAD` *.apk
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-30 21:45:50 +00:00
- ls *.apk
2022-08-30 21:13:49 +00:00
2022-08-27 18:05:12 +00:00
node:
2022-08-27 20:59:33 +00:00
server: builder