[neon/snap-packaging/kde-qt6-snap] debian: test again
Carlos De Maine
null at kde.org
Wed Apr 17 09:46:44 BST 2024
Git commit 46c7da96a5c675c5a5f2a0817a8ad2cfd88d7d34 by Carlos De Maine.
Committed on 17/04/2024 at 08:46.
Pushed by carlosdem into branch 'master'.
test again
M +68 -29 debian/.gitlab-ci-neon.yml
https://invent.kde.org/neon/snap-packaging/kde-qt6-snap/-/commit/46c7da96a5c675c5a5f2a0817a8ad2cfd88d7d34
diff --git a/debian/.gitlab-ci-neon.yml b/debian/.gitlab-ci-neon.yml
index cd11893..bd41f9c 100644
--- a/debian/.gitlab-ci-neon.yml
+++ b/debian/.gitlab-ci-neon.yml
@@ -2,41 +2,80 @@ include:
- project: sysadmin/ci-utilities
file:
- /gitlab-templates/blocks/workflow.yml
-snap:
- stage: deploy
- image: invent-registry.kde.org/sysadmin/ci-images/snap-builder:latest
+
+snapcraft:
rules:
- # run the job on mainline branches of mainline repositories
- - 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
- allow_failure: true
+ stage: build
tags:
- Snap
variables:
+ name: KDE_SNAP_BUILD_TYPE
+ value: "lxc"
+ options:
+ destructive
+ lxc
+ image-dangerous
+ image-signed
+ description: "The scraft build type. Set to 'lxc' by default."
KDE_SNAP_MODULE_NAME: ${CI_PROJECT_NAME}
- KDECI_SIGNSNAP_CONFIG: $CI_PROJECT_DIR/ci-utilities/signing/signsnap.ini
+ SNAPCRAFT_BUILD_ENVIRONMENT: "host"
+ SNAPCRAFT_MANAGED_MODE: "y"
+ SNAPCRAFT_STORE_CREDENTIALS: "abcdefghijklmnopqrstuvwxyz1234567890"
interruptible: true
before_script:
- git clone https://invent.kde.org/sysadmin/ci-utilities.git --depth=1
- - git clone https://invent.kde.org/sysadmin/ci-notary-service.git --depth=1
+ - git clone https://invent.kde.org/sysadmin/repo-metadata.git ci-utilities/repo-metadata/ --depth=1
script:
- - snapcraft
- #- git config --global --add safe.directory $CI_PROJECT_DIR
- #- python3 -u ci-utilities/run-ci-bu
- #- echo ${KDE_SNAPCRAFT_MODULE_NAME}
- # Build and install
- #- python3 -u ci-utilities/snap-build.py ${KDE_SNAP_MODULE_NAME}
- # Sign and publish (if the project branch is cleared for signing and publishing)
- #- python3 ci-notary-service/signsnap.py -v --config $KDECI_SIGNSNAP_CONFIG ${KDE_SNAP_MODULE_NAME}.SNAP
- artifacts:
- name: SNAPCRAFT artifacts
- expose_as: 'SNAPCRAFT Bundle'
- when: always
- paths:
- - "${KDE_SNAP_MODULE_NAME}.snap"
- - "task.log"
- - "task-debug.log"
- expire_in: 7 days
\ No newline at end of file
+ - git config --global --add safe.directory $CI_PROJECT_DIR
+ - echo $SNAPCRAFT_STORE_CREDENTIALS
+
+## different build jobs
+workflow:
+ rules:
+ - if: $KDE_SNAP_BUILD_TYPE == "destructive"
+snapcraft_destructive:
+ extends: snapcraft
+ inherit:
+ default: true
+ script:
+ - echo building $KDE_SNAP_MODULE_NAME in $KDE_SNAP_BUILD_TYPE mode
+ - snapcraft whoami
+ - snapcraft --destructive
+ interruptible: true
+
+ rules:
+ - if: $KDE_SNAP_BUILD_TYPE == "lxc"
+snapcraft_lxc:
+ extends: snapcraft
+ inherit:
+ default: true
+ script:
+ - echo $SNAPCRAFT_STORE_CREDENTIALS
+ - echo building $KDE_SNAP_MODULE_NAME in $KDE_SNAP_BUILD_TYPE mode ...
+ - snapcraft whoami
+ - snapcraft --use-lxc
+ interruptible: true
+
+ rules:
+ - if: '$KDE_SNAP_BUILD_TYPE == "image-dangerous"'
+ubuntu_image_dangerous:
+ extends: snapcraft
+ inherit:
+ default: true
+ script:
+ - echo building $KDE_SNAP_MODULE_NAME in $KDE_SNAP_BUILD_TYPE mode ...
+ - snapcraft whoami
+ - make dangerous
+ interruptible: true
+
+ rules:
+ - if: $KDE_SNAP_BUILD_TYPE == "image-signed"
+ubuntu_image_signed:
+ extends: snapcraft
+ inherit:
+ default: true
+ script:
+ - echo building $KDE_SNAP_MODULE_NAME in $KDE_SNAP_BUILD_TYPE mode ...
+ - snapcraft whoami
+ - make signed
+ interruptible: true
\ No newline at end of file
More information about the Neon-commits
mailing list