[neon/snap-packaging/plasma-core-desktop-snap/ci-prototype] debian: extends: .snap_base_proto

Carlos De Maine null at kde.org
Mon May 6 08:32:35 BST 2024


Git commit f66e577029692de7ffd7d337fe74376838dc914c by Carlos De Maine.
Committed on 06/05/2024 at 07:32.
Pushed by carlosdem into branch 'ci-prototype'.

extends: .snap_base_proto

M  +5    -31   debian/snap-image-snapcraft-lxd--proto.yml

https://invent.kde.org/neon/snap-packaging/plasma-core-desktop-snap/-/commit/f66e577029692de7ffd7d337fe74376838dc914c

diff --git a/debian/snap-image-snapcraft-lxd--proto.yml b/debian/snap-image-snapcraft-lxd--proto.yml
index c380a0a..257f193 100644
--- a/debian/snap-image-snapcraft-lxd--proto.yml
+++ b/debian/snap-image-snapcraft-lxd--proto.yml
@@ -2,38 +2,12 @@
   #- /gitlab-templates/blocks/snap-base.yml
   #- /gitlab-templates/blocks/workflow.yml
 
-snap_image_dangerous:
-  extends: .snap_base
+snap_snapcraft_destructive:
+  extends: .snap_base_proto
+  image: invent-registry.kde.org/sysadmin/ci-images/snap-builder:latest
   inherit:
     default: true
   script:
-    # make sure there is a snap specific so gpg deosn't freak out
-    - mkdir -p -m 0700 ¬/.snap/gnupg/
-    - mkdir -p -m 0700 ¬/.snap/gnupg/private-keys-v1.d/
-    # export it as a env var for convenience
-    - export GNUPGHOME=¬/.snap/gnupg/
-    # test the env var
-    - echo $GNUPGHOME
-    # copy in the required exported login creds so that snapcraft whoami works
-    - echo $KDE_NEON_CORE_IMAGE_KEY > kde-neon-core-image-key
-    # feed snap's gpg the required key
-    - echo $PRIVATE_KEY | base64 --decode | gpg --batch --import
-    # make sure the key is trusted
-    - gpg --import-ownertrust <(echo "$OWNER_TRUST")
-    # test the keys
-    - gpg --list-keys
-    # test the login
-    - snapcraft whoami
-    # build the image with the project's tooling
-    - echo building $KDE_SNAP_MODULE_NAME in dangerous mode ...
-    - make dangerous
-    # make the artifacts dir
-    - mkdir -p $CI_PROJECT_DIR/.kde-ci-packages/
-    # copy the gun zipped tar to the artifacts dir
-    - cp -vf $packageDir/*.tar.gz  $CI_PROJECT_DIR/.kde-ci-packages/
+    - echo building $KDE_SNAP_MODULE_NAME with --destructive-mode ...
+    # - snapcraft --use-lxd --destructive-mode --verbosity=verbose
   interruptible: true
-  after_script:
-    # delete the gpg keyring
-    - rm -rf ¬/.snap/gnupg
-    # delete the snapcraft auth creds
-    - rm kde-neon-core-image-key


More information about the Neon-commits mailing list