[neon/snap-packaging/gwenview-snap/Neon/release-24.08] debian: move the varaibles logic into workflow and rules
Carlos De Maine
null at kde.org
Mon Nov 11 07:33:06 GMT 2024
Git commit f2d1c8fbaf76369da78517a8d1f4db79474ff3dd by Carlos De Maine.
Committed on 11/11/2024 at 07:33.
Pushed by carlosdem into branch 'Neon/release-24.08'.
move the varaibles logic into workflow and rules
M +24 -29 debian/snap-base-proto.yml
https://invent.kde.org/neon/snap-packaging/gwenview-snap/-/commit/f2d1c8fbaf76369da78517a8d1f4db79474ff3dd
diff --git a/debian/snap-base-proto.yml b/debian/snap-base-proto.yml
index f21e95b..8f06e18 100644
--- a/debian/snap-base-proto.yml
+++ b/debian/snap-base-proto.yml
@@ -26,39 +26,34 @@
.snap_deploy:
stage: deploy
- rules:
- # run the job on mainline branches of mainline repositories
- - if: $KDECI_SECURE_SERVICES_KEY
+ tags:
+ - Snap
+ workflow:
+ rules:
+ # run the job on mainline branches of mainline repositories
+ - if: $KDECI_SECURE_SERVICES_KEY
when: on_success
- # or when triggered manually
- - when: manual
+ # or when triggered manually
+ - when: manual
# we don't want the manual job to block the pipeline
allow_failure: true
- tags:
- - Snap
- variables:
- GIT_STRATEGY: none
- KDE_SNAP_CHANNEL: "default"
+ if: $KDE_SNAP_BRANCH == "master"
+ variables:
+ KDE_SNAP_CHANNEL: "edge"
+ # RC branch = beta
+ if $KDE_SNAP_BRANCH == "Neon/release-24.12"
+ variables:
+ KDE_SNAP_CHANNEL: "beta"
+ # Branch tags = candidate
+ if $KDE_SNAP_BRANCH == "Neon/release-24.08"
+ variables:
+ KDE_SNAP_CHANNEL: "candidate"
+ # new release tag (new tarball release) = stable needs to be set off manually until ephemeral vm's are a thing
+ #if $KDE_SNAP_BRANCH == "v24.08.3"
+ if $SNAP_PUBLISH_TYPE" == "manual"
+ variables:
+ KDE_SNAP_CHANNEL: "stable"
interruptible: true
- script:
- - |
- # set the channel for the snap dependent on which branch we are building
- # master = edge
- if [ $CI_COMMIT_BRANCH == "master" ]; then
- export KDE_SNAP_CHANNEL="edge"
- # RC branch = beta
- elif [ $CI_COMMIT_BRANCH == "Neon/release-24.12" ]; then
- export KDE_SNAP_CHANNEL="beta"
- # Branch tags = candidate
- elif [ $CI_COMMIT_BRANCH == "Neon/release-24.08" ]; then
- 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
- export KDE_SNAP_CHANNEL="stable"
- else
- echo "this is not a publishable branch"
- fi
#artifacts:
#name: Snap deploy artifacts
#expose_as: 'KDE neon snaps deploy'
More information about the Neon-commits
mailing list