[neon/snap-packaging/gwenview-snap/Neon/release-24.08] debian: more refining

Carlos De Maine null at kde.org
Mon Nov 11 06:43:46 GMT 2024


Git commit fce07a62b022fe0ca46cfb0311e7b1818c6b5cdc by Carlos De Maine.
Committed on 11/11/2024 at 06:43.
Pushed by carlosdem into branch 'Neon/release-24.08'.

more refining

M  +10   -7    debian/snap-base-proto.yml

https://invent.kde.org/neon/snap-packaging/gwenview-snap/-/commit/fce07a62b022fe0ca46cfb0311e7b1818c6b5cdc

diff --git a/debian/snap-base-proto.yml b/debian/snap-base-proto.yml
index 6c282ef..f21e95b 100644
--- a/debian/snap-base-proto.yml
+++ b/debian/snap-base-proto.yml
@@ -4,6 +4,8 @@
     - Snap
   variables:
     KDE_SNAP_MODULE_NAME: ${CI_PROJECT_NAME}
+    KDE_SNAP_BRANCH: $CI_COMMIT_REF_NAME
+    KDE_SNAP_CHANNEL: "default"
     SNAPCRAFT_BUILD_ENVIRONMENT: "lxd"
     SNAPCRAFT_MANAGED_MODE: "y"
   interruptible: true
@@ -26,8 +28,8 @@
   stage: deploy
   rules:
     # run the job on mainline branches of mainline repositories
-    #- if: $KDECI_SECURE_SERVICES_KEY
-    #  when: on_success
+    - if: $KDECI_SECURE_SERVICES_KEY
+      when: on_success
     # or when triggered manually
     - when: manual
       # we don't want the manual job to block the pipeline
@@ -36,23 +38,24 @@
     - Snap
   variables:
     GIT_STRATEGY: none
+    KDE_SNAP_CHANNEL: "default"
   interruptible: true
   script:
   - |
-    # upload to the snap store with the channel dependent on which branch we are building
+    # set the channel for the snap dependent on which branch we are building
     # master = edge
     if [ $CI_COMMIT_BRANCH == "master" ]; then
-        KDE_SNAP_CHANNEL: "edge"
+        export KDE_SNAP_CHANNEL="edge"
     # RC branch = beta
     elif [ $CI_COMMIT_BRANCH == "Neon/release-24.12" ]; then
-        KDE_SNAP_CHANNEL: "beta"
+        export KDE_SNAP_CHANNEL="beta"
     # Branch tags = candidate
     elif [ $CI_COMMIT_BRANCH == "Neon/release-24.08" ]; then
-        KDE_SNAP_CHANNEL: "candidate"
+        export KDE_SNAP_CHANNEL="candidate"
     # new release tag (new tarball release) = stable needs to be set off manually until ephemeral vm's are a thing
     #elif [ $CI_COMMIT_TAG == "v24.08.3" ]; then
     elif [ $SNAP_PUBLISH_TYPE" == "manual" ]; then
-        KDE_SNAP_CHANNEL: "stable"
+        export KDE_SNAP_CHANNEL="stable"
     else
         echo "this is not a publishable branch"
     fi


More information about the Neon-commits mailing list