From aa6d3934bc9e399241003e0f72be62ec13c47801 Mon Sep 17 00:00:00 2001 From: MauriceNino Date: Sat, 22 Jul 2023 17:51:28 +0200 Subject: [PATCH] ci: fix oom issues --- .dockerignore | 1 + .github/workflows/deploy.yaml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.dockerignore b/.dockerignore index bad1b2da9..720f7b529 100644 --- a/.dockerignore +++ b/.dockerignore @@ -18,6 +18,7 @@ **/*.md # docker +.git .dockerignore Dockerfile Dockerfile.dev diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index dc31bc5fd..f43663cd2 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -43,6 +43,13 @@ jobs: [ ! -z "${package_version}" ] || exit 1 # DEPLOY + # fix oom issues (https://github.com/orgs/community/discussions/26351) + - run: | + df -h + sudo swapoff -a + sudo rm -f /swapfile + sudo apt clean + df -h - uses: docker/metadata-action@v4 id: meta with: