Skip to content

Commit

Permalink
Fixes 'No space left on device' in Docker rules
Browse files Browse the repository at this point in the history
- also added for tutorial as those might use real-world data
  • Loading branch information
DrYak committed Oct 13, 2023
1 parent a6b7a33 commit 1764b53
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/test-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
13 changes: 12 additions & 1 deletion .github/workflows/tutorials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1764b53

Please sign in to comment.