Skip to content

Commit

Permalink
Try to avoid space limitations on Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
cgokmen committed Oct 18, 2023
1 parent fe2c093 commit 611eda8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build-push-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
-
name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -59,6 +66,8 @@ jobs:
tags: ${{ steps.meta-dev.outputs.tags }}
labels: ${{ steps.meta-dev.outputs.labels }}
file: docker/dev.Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
-
name: Build and push prod image
uses: docker/build-push-action@v5
Expand All @@ -67,3 +76,5 @@ jobs:
tags: ${{ steps.meta-prod.outputs.tags }}
labels: ${{ steps.meta-prod.outputs.labels }}
file: docker/prod.Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 611eda8

Please sign in to comment.