Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions .github/workflows/profiling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading