From ea31bffb77ad6d1cd31f91ed90e5a4e7974dc621 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Sat, 30 Nov 2024 14:41:07 -0500 Subject: [PATCH] github: use canonical/setup-lxd action in image-setup Signed-off-by: Simon Deziel --- .github/actions/image-setup/action.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/actions/image-setup/action.yml b/.github/actions/image-setup/action.yml index 2a588a0f..26020ccb 100644 --- a/.github/actions/image-setup/action.yml +++ b/.github/actions/image-setup/action.yml @@ -38,10 +38,6 @@ runs: lxd-imagebuilder --version - name: Setup LXD ${{ inputs.lxd-channel }} - shell: bash - run: | - sudo snap refresh lxd --channel=${{ inputs.lxd-channel }} || sudo snap install lxd --channel=${{ inputs.lxd-channel }} - sudo snap set lxd daemon.group=adm - sudo lxd waitready --timeout 60 - sudo lxd init --auto - lxc version + uses: canonical/setup-lxd@main + with: + channel: ${{ inputs.lxd-channel }}