Skip to content

Commit

Permalink
ci: test-and-deploy: Move free disk space step in docker build
Browse files Browse the repository at this point in the history
Each job has different CI context

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
  • Loading branch information
patrickelectric committed Jun 16, 2024
1 parent 04d856e commit 3388b30
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,6 @@ jobs:
- name: Bun build
run: bun run --cwd ./core/frontend build

free-disk-space:
runs-on: ubuntu-latest
needs: [python-tests, frontend-tests]
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
android: true
dotnet: true
haskell: true
large-packages: false
docker-images: false
swap-storage: true

deploy-docker-images:
runs-on: ubuntu-latest
needs: [free-disk-space]
Expand All @@ -88,6 +74,16 @@ jobs:
project: [blueos]
platforms: ["linux/arm/v7,linux/arm64/v8,linux/amd64"]
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
android: true
dotnet: true
haskell: true
large-packages: false
docker-images: false
swap-storage: true

- name: Checkout
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 3388b30

Please sign in to comment.