Skip to content

Commit

Permalink
Add check space steps
Browse files Browse the repository at this point in the history
  • Loading branch information
elenamsd committed Aug 22, 2024
1 parent 1ff6618 commit 435a23a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build-test-webapp-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,9 @@ jobs:
with:
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Clean space in the hosted machine
- name: Check space in machine
run: |
df -h
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
docker rmi $(docker image ls -aq)
df -h
- name: Build & Push
uses: docker/build-push-action@v4
id: built-image
Expand All @@ -48,7 +43,9 @@ jobs:
tags: tiicrc/claasp-lib-staging:test
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

- name: Check space in machine after build
run: |
df -h
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
Expand Down

0 comments on commit 435a23a

Please sign in to comment.