/
snapcraft.yaml
52 lines (46 loc) · 1.31 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: ghvmctl
version: 0.3.0
summary: A utility for manipulating virtual machines during snap testing.
license: Apache-2.0
contact: https://github.com/jnsgruk/ghvmctl/issues
issues: https://github.com/jnsgruk/ghvmctl/issues
source-code: https://github.com/jnsgruk/ghvmctl
description: |
A utility for creating and manipulating desktop virtual machines
using LXD, primarily for installing and running desktop applications
in CI pipelines so that screenshots can be gathered automatically
as part of the QA process.
Before this snap is functional, you must run:
sudo snap connect ghvmctl:lxd lxd:lxd
More information at: https://github.com/snapcrafters/ci
base: core22
grade: stable
confinement: strict
compression: lzo
architectures: [amd64]
apps:
ghvmctl:
command: opt/ghvmctl/ghvmctl
environment:
LXD_DIR: /var/snap/lxd/common/lxd
plugs:
- home
- lxd
parts:
lxd:
source: https://github.com/canonical/lxd
source-type: git
source-depth: 1
build-snaps:
- go
plugin: nil
override-build: |
mkdir "${CRAFT_PART_INSTALL}/bin"
go build -o "${CRAFT_PART_INSTALL}/bin/lxc" ./lxc
local-parts:
plugin: dump
source: ./src
source-type: local
organize:
ghvmctl: opt/ghvmctl/ghvmctl
ghvmctl-runner: opt/ghvmctl/ghvmctl-runner