Skip to content

Commit

Permalink
Fix build without destructive-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rgildein committed May 3, 2024
1 parent 3c08578 commit 53674ce
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ jobs:
steps:
- 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 [[ $(cat /etc/os-release | grep VERSION_CODENAME) == *"jammy"* ]]; then
sudo iptables -F FORWARD
sudo iptables -P FORWARD ACCEPT
fi
- name: Upload charm to charmhub
uses: canonical/charming-actions/upload-charm@2.4.0
with:
Expand Down

0 comments on commit 53674ce

Please sign in to comment.