From 1764b53743601edbb1acb5f5f8dd55b05c3226af Mon Sep 17 00:00:00 2001 From: Ivan Blagoev Topolsky Date: Fri, 13 Oct 2023 11:53:02 +0200 Subject: [PATCH] Fixes 'No space left on device' in Docker rules - also added for tutorial as those might use real-world data --- .github/workflows/deploy-docker.yaml | 6 ++++++ .github/workflows/test-docker.yaml | 10 ++++++++-- .github/workflows/tutorials.yaml | 13 ++++++++++++- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-docker.yaml b/.github/workflows/deploy-docker.yaml index 230b7e1e..35a395f8 100644 --- a/.github/workflows/deploy-docker.yaml +++ b/.github/workflows/deploy-docker.yaml @@ -23,6 +23,12 @@ jobs: packages: write steps: + - name: Free space + # HACK fixes 'No space left on device' + # see: https://github.com/orgs/community/discussions/25678#discussioncomment-5242449 + # NOTE we don't use those, we run everything inside Docker, anyway + run: rm -rf /opt/hostedtoolcache + - name: Set up QEMU uses: docker/setup-qemu-action@v3 diff --git a/.github/workflows/test-docker.yaml b/.github/workflows/test-docker.yaml index 74989572..2a91b52e 100644 --- a/.github/workflows/test-docker.yaml +++ b/.github/workflows/test-docker.yaml @@ -22,6 +22,12 @@ jobs: packages: write steps: + - name: Free space + # HACK fixes 'No space left on device' + # see: https://github.com/orgs/community/discussions/25678#discussioncomment-5242449 + # NOTE we don't use those, we run everything inside Docker, anyway + run: rm -rf /opt/hostedtoolcache + - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -41,11 +47,11 @@ jobs: push: false tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - outputs: type=docker,dest=/tmp/vpipe-docker.tar + outputs: type=docker,dest=./vpipe-docker.tar.zst,compression=zstd,compression-level=6 - name: Upload artifact uses: actions/upload-artifact@v3 if: "( !contains(github.ref, 'master') && !startsWith(github.ref, 'refs/tags') )" with: name: vpipe-docker - path: /tmp/vpipe-docker.tar + path: ./vpipe-docker.tar.zst diff --git a/.github/workflows/tutorials.yaml b/.github/workflows/tutorials.yaml index ce53c50c..6f5e10b6 100644 --- a/.github/workflows/tutorials.yaml +++ b/.github/workflows/tutorials.yaml @@ -17,6 +17,12 @@ jobs: shell: bash -l {0} steps: + - name: Free space + # HACK fixes 'No space left on device' + # see: https://github.com/orgs/community/discussions/25678#discussioncomment-5242449 + # NOTE we don't use those, we use conda for everything anyway + run: rm -rf /opt/hostedtoolcache + - name: Checkout repository uses: actions/checkout@v3 with: @@ -31,7 +37,6 @@ jobs: with: miniforge-version: latest miniforge-variant: Mambaforge - python-version: "3.11" mamba-version: "*" channels: conda-forge,bioconda channel-priority: strict @@ -81,6 +86,12 @@ jobs: shell: bash -l {0} steps: + - name: Free space + # HACK fixes 'No space left on device' + # see: https://github.com/orgs/community/discussions/25678#discussioncomment-5242449 + # NOTE we don't use those, we use conda for everything anyway + run: rm -rf /opt/hostedtoolcache + - name: Checkout repository uses: actions/checkout@v3 with: