mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-10 10:00:00 +00:00
deploy on fdroid
This commit is contained in:
parent
f296096743
commit
f28580ba62
21
.drone.yml
21
.drone.yml
|
@ -1,9 +1,9 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: exec
|
type: exec
|
||||||
name: ci
|
name: Continuous Integration
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: Build Debug Artifacts
|
||||||
commands:
|
commands:
|
||||||
- flutter build apk --debug --split-per-abi
|
- flutter build apk --debug --split-per-abi
|
||||||
- mv build/app/outputs/flutter-apk/*-debug.apk `pwd`
|
- mv build/app/outputs/flutter-apk/*-debug.apk `pwd`
|
||||||
|
@ -19,17 +19,21 @@ node:
|
||||||
server: builder
|
server: builder
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: exec
|
type: exec
|
||||||
name: release
|
name: Release
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: Prepare for Build
|
||||||
commands:
|
commands:
|
||||||
- nixos-container stop isolated
|
- nixos-container stop isolated
|
||||||
- nixos-container start isolated
|
- nixos-container start isolated
|
||||||
- eval `ssh-agent -s`
|
- eval `ssh-agent -s`
|
||||||
- echo "$SSH_PRIVATE_KEY" | ssh-add -
|
- echo "$SSH_PRIVATE_KEY" | ssh-add -
|
||||||
|
|
||||||
|
- name: Build Release Artifacts
|
||||||
|
commands:
|
||||||
- scp -r `pwd` isolated:/var/lib/builder
|
- scp -r `pwd` isolated:/var/lib/builder
|
||||||
- ssh isolated "cd src && flutter build apk --release --split-per-abi"
|
- 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`
|
- scp isolated:/var/lib/builder/src/build/app/outputs/flutter-apk/*-release.apk `pwd`
|
||||||
|
@ -37,11 +41,18 @@ steps:
|
||||||
SSH_PRIVATE_KEY:
|
SSH_PRIVATE_KEY:
|
||||||
from_secret: SSH_PRIVATE_KEY
|
from_secret: SSH_PRIVATE_KEY
|
||||||
|
|
||||||
- name: deploy
|
- name: Prepare for Deploy
|
||||||
commands:
|
commands:
|
||||||
- rename app pro.kherel.selfprivacy *.apk && rename release "$DRONE_SEMVER" *.apk
|
- rename app pro.kherel.selfprivacy *.apk && rename release "$DRONE_SEMVER" *.apk
|
||||||
- ls *.apk
|
- ls *.apk
|
||||||
|
|
||||||
|
- name: Deploy on F-Droid Repository
|
||||||
|
commands:
|
||||||
|
- ls *.apk
|
||||||
|
environment:
|
||||||
|
SSH_PRIVATE_KEY:
|
||||||
|
from_secret: SSH_PRIVATE_KEY
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
Loading…
Reference in a new issue