[neon/ubuntu-core/ci-prototype] debian: use GNUPGHOME env var

Carlos De Maine null at kde.org
Tue Apr 30 05:20:53 BST 2024


Git commit ca0ec914d5d60ff0b0207cc3f552e1a633705770 by Carlos De Maine.
Committed on 30/04/2024 at 04:20.
Pushed by carlosdem into branch 'ci-prototype'.

use GNUPGHOME env var

M  +8    -0    debian/snap-image-dangerous-proto.yml

https://invent.kde.org/neon/ubuntu-core/-/commit/ca0ec914d5d60ff0b0207cc3f552e1a633705770

diff --git a/debian/snap-image-dangerous-proto.yml b/debian/snap-image-dangerous-proto.yml
index 01f1b8d..09b019a 100644
--- a/debian/snap-image-dangerous-proto.yml
+++ b/debian/snap-image-dangerous-proto.yml
@@ -10,9 +10,17 @@ snap_image_dangerous:
     default: true
   script:
     - snapcraft whoami
+
+default:
+  script:
+    - export GNUPGHOME=/home/snaptester/.snap/
+    - gpg --list-keys
+    - echo -e $PRIVATE_KEY | gpg --batch --pinentry-mode loopback --passphrase-fd 0 --import
+    - echo -e $OWNER_TRUST | gpg --import-ownertrust    
     #- cat <<< "$PRIVATE_KEY" > ~/new_file
     #- echo -e $PRIVATE_KEY | gpg --homedir ~/.snap/gnupg --import
     - echo building $KDE_SNAP_MODULE_NAME in dangerous mode ...
     - make dangerous
+    - rm -rf /home/snaptester/.snap/gnupg/
   interruptible: true
   
\ No newline at end of file


More information about the Neon-commits mailing list