Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 builds sometimes fail with with no space left on device try #2 #4

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,17 @@ on:
description: 'NaaVRE base image version'
type: string
required: false
free_disk_space:
description: 'Free disk space on the action runner before running jobs'
type: boolean
required: false
default: false

jobs:
build:
name: Build ${{ inputs.image_name }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Free Up GitHub Actions Ubuntu Runner Disk Space
uses: jlumbroso/[email protected]
with:
Expand All @@ -49,6 +48,13 @@ jobs:
large-packages: true
docker-images: false
swap-storage: true
if: ${{ inputs.free_disk_space }}

- name: Checkout
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- id: find-dockerfile
name: Find Dockerfile
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/make-flavor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ on:
description: 'Whether to build the NaaVRE Jupyter images'
type: boolean
required: true
free_disk_space:
description: 'Free disk space on the action runner before running jobs'
type: boolean
required: true

jobs:
build-naavre-cell-build:
Expand Down Expand Up @@ -52,6 +56,7 @@ jobs:
image_repo: ${{ inputs.image_repo }}
image_version: ${{ inputs.naavre_version }}-${{ inputs.image_version }}
naavre_version: ${{ inputs.naavre_version }}
free_disk_space: ${{ inputs.free_disk_space }}
if: ${{ inputs.build_jupyter }}

test:
Expand Down Expand Up @@ -85,4 +90,5 @@ jobs:
with:
image_name: naavre-jupyter-${{ inputs.flavor_name }}
image_repo: ${{ inputs.image_repo }}
free_disk_space: ${{ inputs.free_disk_space }}
if: ${{ github.event_name == 'release' && inputs.build_jupyter }}
1 change: 1 addition & 0 deletions .github/workflows/make.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
image_version: ${{ github.ref_type == 'tag' && github.ref_name || github.sha }}
naavre_version: 'v2.4.0-alpha.1'
build_jupyter: ${{ matrix.build_jupyter }}
free_disk_space: ${{ matrix.free_disk_space }}
strategy:
matrix: ${{ fromJson(needs.list-flavors.outputs.matrix) }}

Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/push-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,29 @@ on:
description: 'Docker image repo'
type: string
required: true
free_disk_space:
description: 'Free disk space on the action runner before running jobs'
type: boolean
required: false
default: false

jobs:
push:
name: Push ${{ inputs.image_name }}
runs-on: ubuntu-latest
steps:
- name: Free Up GitHub Actions Ubuntu Runner Disk Space
uses: jlumbroso/[email protected]
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: false
swap-storage: true
if: ${{ inputs.free_disk_space }}

- name: Download artifact
uses: actions/download-artifact@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion flavors/laserfarm/flavor_config.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
flavor_name: laserfarm
build_jupyter: True
build_jupyter: True
free_disk_space: True
3 changes: 2 additions & 1 deletion flavors/lter-life-veluwe/flavor_config.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
flavor_name: lter-life-veluwe
build_jupyter: True
build_jupyter: True
free_disk_space: False
3 changes: 2 additions & 1 deletion flavors/python/flavor_config.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
flavor_name: python
build_jupyter: False
build_jupyter: False
free_disk_space: False
3 changes: 2 additions & 1 deletion flavors/r/flavor_config.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
flavor_name: r
build_jupyter: False
build_jupyter: False
free_disk_space: False
3 changes: 2 additions & 1 deletion flavors/vol2bird/flavor_config.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
flavor_name: vol2bird
build_jupyter: True
build_jupyter: True
free_disk_space: False