mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-17 06:03:20 +00:00
deploy on fdroid
This commit is contained in:
parent
0fc34669de
commit
1c9854e83b
33
.drone.yml
33
.drone.yml
|
@ -24,30 +24,33 @@ kind: pipeline
|
||||||
type: exec
|
type: exec
|
||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
steps:
|
environment:
|
||||||
- name: Prepare for Build
|
SSH_PRIVATE_KEY:
|
||||||
commands:
|
from_secret: SSH_PRIVATE_KEY
|
||||||
- nixos-container stop isolated
|
|
||||||
- nixos-container start isolated
|
|
||||||
- eval `ssh-agent -s`
|
|
||||||
- echo "$SSH_PRIVATE_KEY" | ssh-add -
|
|
||||||
environment:
|
|
||||||
SSH_PRIVATE_KEY:
|
|
||||||
from_secret: SSH_PRIVATE_KEY
|
|
||||||
|
|
||||||
|
steps:
|
||||||
- name: Build Release Artifacts
|
- name: Build Release Artifacts
|
||||||
commands:
|
commands:
|
||||||
|
# Prepare SSH keys
|
||||||
|
- eval `ssh-agent -s`
|
||||||
|
- echo "$SSH_PRIVATE_KEY" | ssh-add -
|
||||||
|
# Reset building environment
|
||||||
|
- nixos-container stop isolated
|
||||||
|
- nixos-container start isolated
|
||||||
|
# Copy sources to the building environment
|
||||||
- scp -r `pwd` isolated:/var/lib/builder
|
- scp -r `pwd` isolated:/var/lib/builder
|
||||||
|
# Build release artifacts
|
||||||
- ssh isolated "cd src && flutter build apk --release --split-per-abi"
|
- ssh isolated "cd src && flutter build apk --release --split-per-abi"
|
||||||
|
# Fetch the release artifacts
|
||||||
- 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`
|
||||||
|
|
||||||
- name: Prepare for Deploy
|
|
||||||
commands:
|
|
||||||
- rename app pro.kherel.selfprivacy *.apk && rename release "$DRONE_SEMVER" *.apk
|
|
||||||
- ls *.apk
|
|
||||||
|
|
||||||
- name: Deploy on F-Droid Repository
|
- name: Deploy on F-Droid Repository
|
||||||
commands:
|
commands:
|
||||||
|
# Prepare SSH keys
|
||||||
|
- eval `ssh-agent -s`
|
||||||
|
- echo "$SSH_PRIVATE_KEY" | ssh-add -
|
||||||
|
# Rename the artifacts in a more informative way
|
||||||
|
- rename app pro.kherel.selfprivacy *.apk && rename release "$DRONE_SEMVER" *.apk
|
||||||
- ls *.apk
|
- ls *.apk
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
|
|
Loading…
Reference in a new issue