Skip to content

Commit

Permalink
GHA: try to clean up a bit
Browse files Browse the repository at this point in the history
So there is enough space for the container.
See docker/build-push-action#321
  • Loading branch information
gaborcsardi committed Sep 10, 2023
1 parent 96f85bc commit 7a55136
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ jobs:
name: ${{ matrix.container }}

steps:
# needed for bigger Docker images, if there isn't enough space, then
# they build, but are not exported to Docker
- name: "Clean up"
run: |
sudo rm -rf /usr/share/dotnet /usr/share/miniconda \
$JAVA_HOME_8_X64 $JAVA_HOME_11_X64 $JAVA_HOME_17_X64 \
$ANDROID_HOME
du -hs
docker buildx du
- uses: actions/checkout@v3

- name: Login to GitHub Container Registry
Expand All @@ -92,13 +102,11 @@ jobs:
context: containers/${{ matrix.container }}
load: true
tags: |
docker.io/rhub/test:test
rhub/test:test
- name: Test
run: |
docker images
docker run docker.io/rhub/test:test R --version
docker run rhub/test:test R --version
- name: Push
uses: docker/build-push-action@v3
Expand Down

0 comments on commit 7a55136

Please sign in to comment.