Skip to content

Commit

Permalink
using officail action to setup LXD
Browse files Browse the repository at this point in the history
  • Loading branch information
rgildein committed May 6, 2024
1 parent 37fe466 commit b365780
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Initialize lxd # This should dropped once it's implemented on charming-actions itself. https://github.com/canonical/charming-actions/issues/140
if: ${{ inputs.destructive-mode == false }}
run: |
sudo lxd init --auto
# The following is needed to fix network error when creating new base instance on lxd
sudo chmod a+wr /var/snap/lxd/common/lxd/unix.socket
lxc network set lxdbr0 ipv6.address none
sudo usermod -a -G lxd $USER
if grep -q VERSION_CODENAME=jammy /etc/os-release; then then
sudo iptables -F FORWARD
sudo iptables -P FORWARD ACCEPT
fi
uses: canonical/[email protected]
- name: Upload charm to charmhub
uses: canonical/charming-actions/[email protected]
with:
Expand Down

0 comments on commit b365780

Please sign in to comment.