Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ description: |
where, what to do before and after it runs, and how to duplicate jobs
with minor variations without copy & paste.

To use the LXD backend, connect the lxd interface:

sudo snap connect spread:lxd lxd:lxd

confinement: strict
grade: stable
base: core24
Expand All @@ -22,6 +26,7 @@ apps:
- home
- network
- network-bind
- lxd

parts:
spread:
Expand All @@ -34,3 +39,13 @@ parts:
override-pull: |
craftctl default
craftctl set version="$(date +"%Y.%m.%d")-g$(git rev-parse --short HEAD)"

lxd:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an easy way to test that this is working? Are there tests for the spread snap?

source: https://github.com/canonical/lxd
source-type: git
source-depth: 1
source-branch: stable-5.21
plugin: nil
override-build: |
Comment on lines +48 to +49
mkdir "${CRAFT_PART_INSTALL}/bin"
go build -o "${CRAFT_PART_INSTALL}/bin/lxc" ./lxc
Loading