diff --git a/.github/workflows/image-build-and-push.yaml b/.github/workflows/image-build-and-push.yaml index 8aaf7703..451a9bdf 100644 --- a/.github/workflows/image-build-and-push.yaml +++ b/.github/workflows/image-build-and-push.yaml @@ -28,6 +28,22 @@ jobs: release: runs-on: ubuntu-latest steps: + - name: Cleanup + run: | + ls -lart + echo "Initial status:" + df -h + echo "Cleaning up resources:" + sudo swapoff -a + sudo rm -f /swapfile + sudo apt clean + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + docker rmi $(docker image ls -aq) + echo "Final status:" + df -h - name: Checkout the repository uses: actions/checkout@v3 - name: Install Python diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a13d92f3..20dce4e7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -86,7 +86,7 @@ jobs: - name: Notebook Image Build and Push run: | - gh workflow run image-build-and-push.yml --repo ${{ github.event.inputs.codeflare-repository-organization }}/codeflare-sdk --ref ${{ github.ref }} --field is-stable=${{ github.event.inputs.is-stable }} --field release-version=${{ github.event.inputs.release-version }} --field quay-organization=${{ github.event.inputs.quay-organization }} + gh workflow run image-build-and-push.yaml --repo ${{ github.event.inputs.codeflare-repository-organization }}/codeflare-sdk --ref ${{ github.ref }} --field is-stable=${{ github.event.inputs.is-stable }} --field release-version=${{ github.event.inputs.release-version }} --field quay-organization=${{ github.event.inputs.quay-organization }} env: GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }} shell: bash