jenkins: add fdroid deploy steps

This commit is contained in:
2025-10-09 08:52:32 +02:00
parent f9ae3702d0
commit 68f480680d

45
Jenkinsfile vendored
View File

@@ -23,9 +23,50 @@ pipeline {
} }
} }
stage('Deploy') { stage('Deploy') {
stages {
stage('Checkout F-Droid Repo') {
steps { steps {
echo 'Push to f-droid not yet implemented, archiving instead' dir("fdroid-repo") {
archiveArtifacts artifacts: 'build/app/outputs/apk/release/app-release.apk' 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
'''
}
}
}
} }
} }
} }