diff --git a/.github/workflows/profiling.yaml b/.github/workflows/profiling.yaml index 90dac5a393..57fe083aab 100644 --- a/.github/workflows/profiling.yaml +++ b/.github/workflows/profiling.yaml @@ -54,6 +54,7 @@ jobs: working-directory: compose/dev run: | # Build and start kepler-dev and kepler-latest services in detach mode + # NOTE: sushy-static service will also be started as kepler-dev service has dependency on it docker compose up kepler-dev kepler-latest --build -d --wait --wait-timeout 300 - name: Run must gather @@ -105,21 +106,33 @@ jobs: path: ./tmp/* retention-days: 5 # Keep artifact for 5 days - # NOTE: Ensure that all deployments, built images and cluster are properly cleaned up + # NOTE: Ensure that all deployments, built images and docker system are properly cleaned up # to prevent residual resources - name: Shutdown Docker Compose services if: always() shell: bash working-directory: compose/dev run: | - # Stop kepler-dev and kepler-latest services - docker compose down kepler-dev kepler-latest --volumes + # Stop all the services + docker compose down --volumes - - name: Cleanup Docker images + - name: Cleanup Docker system if: always() shell: bash run: | - docker image prune -af + docker system prune -a -f --volumes + + - name: Cleanup Build cache + if: always() + shell: bash + run: | + docker builder prune -a -f + + - name: Show Docker usage + if: always() + shell: bash + run: | + docker system df generate-comment-message: needs: profiling