jenkins: add fdroid deploy steps
This commit is contained in:
47
Jenkinsfile
vendored
47
Jenkinsfile
vendored
@@ -23,9 +23,50 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
steps {
|
stages {
|
||||||
echo 'Push to f-droid not yet implemented, archiving instead'
|
stage('Checkout F-Droid Repo') {
|
||||||
archiveArtifacts artifacts: 'build/app/outputs/apk/release/app-release.apk'
|
steps {
|
||||||
|
dir("fdroid-repo") {
|
||||||
|
git branch: 'binaries', url: "https://gitlab.julian-mutter.de/julian/fdroid-frajul.git"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Decrypt keys') {
|
||||||
|
steps {
|
||||||
|
dir("fdroid-repo") {
|
||||||
|
sh './decrypt.sh'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Copy APK') {
|
||||||
|
steps {
|
||||||
|
sh "cp build/app/outputs/apk/release/app-release.apk fdroid-repo/fdroid/repo/sheetless.apk"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Update Metadata') {
|
||||||
|
steps {
|
||||||
|
dir("fdroid-repo") {
|
||||||
|
sh './update-repo.sh'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Push updates') {
|
||||||
|
steps {
|
||||||
|
dir("fdroid-repo") {
|
||||||
|
sh '''
|
||||||
|
git checkout master
|
||||||
|
git add .
|
||||||
|
git commit -m "Update repo from CI"
|
||||||
|
git push origin master
|
||||||
|
./push-apks.sh
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user