deploy on fdroid

pull/110/head
Alya Sirko 2022-08-31 15:43:07 +03:00
parent f296096743
commit f28580ba62
1 changed files with 16 additions and 5 deletions

View File

@ -1,9 +1,9 @@
kind: pipeline
type: exec
name: ci
name: Continuous Integration
steps:
- name: build
- name: Build Debug Artifacts
commands:
- flutter build apk --debug --split-per-abi
- mv build/app/outputs/flutter-apk/*-debug.apk `pwd`
@ -19,17 +19,21 @@ node:
server: builder
---
kind: pipeline
type: exec
name: release
name: Release
steps:
- name: build
- name: Prepare for Build
commands:
- nixos-container stop isolated
- nixos-container start isolated
- eval `ssh-agent -s`
- echo "$SSH_PRIVATE_KEY" | ssh-add -
- name: Build Release Artifacts
commands:
- scp -r `pwd` isolated:/var/lib/builder
- ssh isolated "cd src && flutter build apk --release --split-per-abi"
- scp isolated:/var/lib/builder/src/build/app/outputs/flutter-apk/*-release.apk `pwd`
@ -37,11 +41,18 @@ steps:
SSH_PRIVATE_KEY:
from_secret: SSH_PRIVATE_KEY
- name: deploy
- name: Prepare for Deploy
commands:
- rename app pro.kherel.selfprivacy *.apk && rename release "$DRONE_SEMVER" *.apk
- ls *.apk
- name: Deploy on F-Droid Repository
commands:
- ls *.apk
environment:
SSH_PRIVATE_KEY:
from_secret: SSH_PRIVATE_KEY
trigger:
event:
- tag