diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 77464b4a54..7573a35dac 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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 diff --git a/.github/workflows/spread.yml b/.github/workflows/spread.yml index 5accbef196..0107f0815f 100644 --- a/.github/workflows/spread.yml +++ b/.github/workflows/spread.yml @@ -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