-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (27 loc) · 956 Bytes
/
test.yml
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
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: [ubuntu-latest]
steps:
- run: sudo sysctl -w net.ipv4.ip_forward=1
- run: sudo sysctl net.ipv4.ip_forward
- run: sudo systemctl stop docker.service
- run: |
sudo curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc
cat <<SOURCES | sudo tee /etc/apt/sources.list.d/zabbly-incus-stable.sources
Enabled: yes
Types: deb
URIs: https://pkgs.zabbly.com/incus/stable
Suites: $(. /etc/os-release && echo ${VERSION_CODENAME})
Components: main
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/zabbly.asc
SOURCES
sudo apt update
sudo apt install -y -V incus
- run: |
sudo incus admin init --auto
sudo incus config device add target host disk source=$PWD path=/host
sudo incus ls
sudo incus network list