Skip to content

Commit

Permalink
ci: remove docker before building snap (#3990)
Browse files Browse the repository at this point in the history
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
Co-authored-by: Sergio Schvezov <sergio.schvezov@canonical.com>
  • Loading branch information
mr-cal and sergiusens authored Nov 23, 2022
1 parent 06ca484 commit 747fc43
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ jobs:
echo "::set-output name=PUBLISH::"
fi
- if: steps.decisions.outputs.PUBLISH == 'true'
name: Remove Docker
run: |
# https://github.com/canonical/lxd-cloud/blob/f20a64a8af42485440dcbfd370faf14137d2f349/test/includes/lxd.sh#L13-L23
sudo rm -rf /etc/docker
sudo apt-get purge moby-buildx moby-engine moby-cli moby-compose moby-containerd moby-runc -y
sudo iptables -P FORWARD ACCEPT
- if: steps.decisions.outputs.PUBLISH == 'true'
name: Checkout Snapcraft
uses: actions/checkout@v2
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/spread.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
with:
fetch-depth: 0

- name: Remove Docker
run: |
# https://github.com/canonical/lxd-cloud/blob/f20a64a8af42485440dcbfd370faf14137d2f349/test/includes/lxd.sh#L13-L23
sudo rm -rf /etc/docker
sudo apt-get purge moby-buildx moby-engine moby-cli moby-compose moby-containerd moby-runc -y
sudo iptables -P FORWARD ACCEPT
- name: Build snapcraft snap
id: build-snapcraft
uses: snapcore/action-build@v1.0.9
Expand Down

0 comments on commit 747fc43

Please sign in to comment.