Skip to content
Merged
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
21 changes: 19 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,25 @@ runs:
shell: bash
run: |
sudo iptables -I DOCKER-USER -j ACCEPT
sudo snap install lxd
sudo snap refresh lxd
if snap list lxd 2> /dev/null; then
for i in {1..10}; do
if [ $i == 10 ]; then
sudo snap refresh lxd --channel 5.21/stable
else
sudo snap refresh lxd --channel 5.21/stable && break || :
fi
sleep 5
done
else
for i in {1..10}; do
if [ $i == 10 ]; then
sudo snap install lxd --channel 5.21/stable
else
sudo snap install lxd --channel 5.21/stable && break || :
fi
sleep 5
done
fi
sudo lxd waitready
sudo lxd init --auto
sudo lxc project create devstack -c features.images=false
Expand Down