Skip to content

Commit 53af5f5

Browse files
committed
build-lxd.yml: Migrate to incus
Signed-off-by: Tobias K <[email protected]>
1 parent 8d4fc3b commit 53af5f5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build-lxd.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
LXC_CMD="incus"
4545
RUNNER_LABEL="ubuntu-20.04-arm64"
4646
else
47-
LXC_CMD="lxc"
47+
LXC_CMD="incus"
4848
RUNNER_LABEL="ubuntu-20.04"
4949
fi
5050
@@ -69,15 +69,16 @@ jobs:
6969
ref: "${{ env.VERSION }}"
7070
- name: Cleanup lxd
7171
run: test -z "$("$LXC" profile device show default | grep eth0)" || "$LXC" profile device remove default eth0
72-
- uses: whywaita/setup-lxd@v1
73-
if: ${{ needs.determine-runner.outputs.lxc_cmd == 'lxc' }}
72+
- uses: bdx0/action-incus@v1
7473
continue-on-error: true
7574
with:
7675
lxd_version: latest/stable
7776
- name: Fix LXD
7877
run: |
7978
sudo iptables -I DOCKER-USER -i lxdbr0 -j ACCEPT
8079
sudo iptables -I DOCKER-USER -o lxdbr0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
80+
sudo iptables -I DOCKER-USER -i incusbr0 -j ACCEPT
81+
sudo iptables -I DOCKER-USER -o incusbr0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
8182
- name: Build LXD image
8283
env:
8384
USE_INCUS: "${{ needs.determine-runner.outputs.lxc_cmd == 'incus' && 'yes' || 'no' }}"

0 commit comments

Comments
 (0)