Merge branch 'MTRNord/fdroid' into 'main'

chore: Use correct paths on new server

See merge request famedly/fluffychat!340
This commit is contained in:
Krille Fear 2021-01-17 07:53:57 +00:00
commit d40b586d7b

View File

@ -92,7 +92,7 @@ build_android_appbundle:
only: only:
- main - main
upload_to_fdroid_repo: upload-fdroid:
stage: release stage: release
before_script: before_script:
- 'which ssh-agent || (sudo apt-get update -y && sudo apt-get install openssh-client -y )' - 'which ssh-agent || (sudo apt-get update -y && sudo apt-get install openssh-client -y )'
@ -106,8 +106,8 @@ upload_to_fdroid_repo:
script: script:
- cd build/android/ - cd build/android/
- export UPDATE_VERSION=$(pcregrep -o1 'version:\s([0-9]*\.[0-9]*\.[0-9]*)\+[0-9]*' ../../pubspec.yaml) && mv app-release.apk "${UPDATE_VERSION}.apk" - export UPDATE_VERSION=$(pcregrep -o1 'version:\s([0-9]*\.[0-9]*\.[0-9]*)\+[0-9]*' ../../pubspec.yaml) && mv app-release.apk "${UPDATE_VERSION}.apk"
- rsync -rav -e ssh ./ fluffy@fdroid.nordgedanken.dev:/fdroid/repo - rsync -rav -e ssh ./ fluffy@fdroid.nordgedanken.dev:/opt/fdroid/fluffychat/repo
- ssh fluffy@fdroid.nordgedanken.dev "cd fdroid && fdroid update" - ssh fluffy@fdroid.nordgedanken.dev "cd /opt/fdroid/fluffychat && fdroid update --verbose"
needs: ["build_android_apk"] needs: ["build_android_apk"]
resource_group: playstore_release resource_group: playstore_release
allow_failure: true allow_failure: true