From f773b6a0209a919ab7fdb861d74681ccc4cce8aa Mon Sep 17 00:00:00 2001
From: Karl-Johan Karlsson <karl-johan.karlsson@liu.se>
Date: Thu, 1 Feb 2024 12:16:14 +0100
Subject: [PATCH] Add CI step for building a Snap package

---
 .gitlab-ci.yml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000000..9d2d9d5816
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,16 @@
+---
+stages:
+  - build
+
+snap:
+  stage: build
+  image: ubuntu:22.04
+  script:
+    - apt update
+    - apt -y install snapcraft
+    - snap install lxd
+    - lxd init --auto
+    - snapcraft --use-lxd
+  artifacts:
+    paths:
+      - autopsy_*.snap
-- 
GitLab