From 8dac1beb38a17b4bffb6c22da605e866356b922d Mon Sep 17 00:00:00 2001
From: Georg krause <mail@georg-krause.net>
Date: Wed, 19 Apr 2023 11:51:59 +0200
Subject: [PATCH] Fix apk path for propritary code check

---
 .gitlab-ci.yml | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5c40f35a..e8ce5963 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -71,13 +71,25 @@ test:
     # override the policy
     policy: pull-push
   
-test_nonfree_code:
+test_nonfree_code_dev:
   stage: test-after-build
   image: registry.funkwhale.audio/funkwhale/ci/android-fdroidserver
   script:
     - fdroid scanner -v app/build/outputs/apk/debug/app-debug.apk |& tee output.txt
     - cat output.txt
     - (! grep "CRITICAL" output.txt)
+  except: 
+    - tags
+
+test_nonfree_code_release:
+  stage: test-after-build
+  image: registry.funkwhale.audio/funkwhale/ci/android-fdroidserver
+  script:
+    - fdroid scanner -v app/build/outputs/apk/release/app-release.apk |& tee output.txt
+    - cat output.txt
+    - (! grep "CRITICAL" output.txt)
+  only:
+    - tags
 
 coverage:
   stage: visualize
-- 
GitLab