[neon/snap-packaging/gwenview-snap/Neon/master] debian: hard code channel list for meantime

Carlos De Maine null at kde.org
Mon Aug 19 14:30:14 BST 2024


Git commit 1f145bf04568b0560ca7930f333577baca6b2452 by Carlos De Maine.
Committed on 19/08/2024 at 13:30.
Pushed by carlosdem into branch 'Neon/master'.

hard code channel list for meantime

M  +10   -0    debian/snap-base-proto.yml
M  +1    -1    debian/snap-snapcraft-lxd-proto.yml

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

diff --git a/debian/snap-base-proto.yml b/debian/snap-base-proto.yml
index 9cfdc85..f12a2fa 100644
--- a/debian/snap-base-proto.yml
+++ b/debian/snap-base-proto.yml
@@ -13,6 +13,16 @@
     - git clone https://invent.kde.org/sysadmin/repo-metadata.git ci-utilities/repo-metadata/ --depth=1
   script:
     - git config --global --add safe.directory $CI_PROJECT_DIR
+    - |
+      if [ "$KDE_SNAP_BRANCH" == "Neon/master" ]; then
+        $KDE_SNAP_CHANNEL = "edge"
+      done
+      if [ "$KDE_SNAP_BRANCH" == "Neon/24.08" ]; then
+        $KDE_SNAP_CHANNEL = "candidate"
+      done
+      if [ "$KDE_SNAP_BRANCH" == "Neon/24.05" ]; then
+        $KDE_SNAP_CHANNEL = "stable"
+      done
   artifacts:
     name: Snap artifacts
     expose_as: 'KDE neon snaps'
diff --git a/debian/snap-snapcraft-lxd-proto.yml b/debian/snap-snapcraft-lxd-proto.yml
index 82d4d1b..9fb8b59 100644
--- a/debian/snap-snapcraft-lxd-proto.yml
+++ b/debian/snap-snapcraft-lxd-proto.yml
@@ -65,6 +65,6 @@ snap_snapcraft_lxd:
       fi
     # upload to the snap store last as if snap upload fails, the lxc cleanup is never run
     # super hacky upload of snap to store
-    - snapcraft push --release=edge *.snap
+    - snapcraft push --release=$KDE_SNAP_CHANNEL *.snap
   allow_failure: true
   interruptible: true


More information about the Neon-commits mailing list