|
23 | 23 | password: ${{ secrets.GITHUB_TOKEN }} |
24 | 24 | - name: Set up Docker Buildx |
25 | 25 | uses: docker/setup-buildx-action@v3 |
| 26 | + - name: Free up space |
| 27 | + uses: ./.github/actions/cleanup |
26 | 28 | - name: Build and push toolchain |
27 | 29 | run: ./scripts/build -g -s toolchain |
28 | 30 | - name: Export the container |
|
72 | 74 | tar xf ${{ needs.stage1.outputs.UUID }}-toolchain.tar.gz |
73 | 75 | rm ${{ needs.stage1.outputs.UUID }}-toolchain.tar.gz |
74 | 76 | popd |
| 77 | + - name: Free up space |
| 78 | + uses: ./.github/actions/cleanup |
75 | 79 | - name: Build and push toolchain |
76 | 80 | run: ./scripts/build -g -s base -c ghcr.io/toltec-dev/toolchain=oci-layout://${{ runner.temp }} |
77 | 81 | - name: Export the container |
@@ -114,14 +118,7 @@ jobs: |
114 | 118 | rm ${{ needs.stage2.outputs.UUID }}-base.tar.gz |
115 | 119 | popd |
116 | 120 | - name: Free up space |
117 | | - run: | |
118 | | - rm -rf .git/ |
119 | | - docker system prune --force |
120 | | - docker rmi $(docker image ls -aq) || true |
121 | | - docker system prune --force |
122 | | - export DEBIAN_FRONTEND="noninteractive" |
123 | | - sudo apt-get autoremove -y |
124 | | - sudo apt-get autoclean -y |
| 121 | + uses: ./.github/actions/cleanup |
125 | 122 | - name: Build and push toolchain |
126 | 123 | run: ./scripts/build -g -s ${{ matrix.target }} -c ghcr.io/toltec-dev/base=oci-layout://${{ runner.temp }} |
127 | 124 | - name: Export the container |
|
0 commit comments