jenkins: add fdroid deploy steps
This commit is contained in:
45
Jenkinsfile
vendored
45
Jenkinsfile
vendored
@@ -23,9 +23,50 @@ pipeline {
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
stages {
|
||||
stage('Checkout F-Droid Repo') {
|
||||
steps {
|
||||
echo 'Push to f-droid not yet implemented, archiving instead'
|
||||
archiveArtifacts artifacts: 'build/app/outputs/apk/release/app-release.apk'
|
||||
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