Skip to content

Commit

Permalink
Add cleanup and disk usage checks to GitHub Actions workflow. (#1401)
Browse files Browse the repository at this point in the history
- Implement cleanup steps for Docker and KIND resources to prevent disk space errors.
  • Loading branch information
mjshastha authored Oct 4, 2024
1 parent 15f3472 commit f136085
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ jobs:
env:
KUBECONFIG: /home/runner/.kube/config
STARBOARD_TEST_CLI_LOG_LEVEL: "0"
- name: Cleanup Docker and KIND resources
run: |
docker system prune -a --force
docker volume prune --force
itest-starboard-operator:
name: Run integration tests / Starboard Operator
needs:
Expand Down Expand Up @@ -95,6 +99,10 @@ jobs:
KUBECONFIG: /home/runner/.kube/config
OPERATOR_NAMESPACE: starboard-system
OPERATOR_TARGET_NAMESPACES: default
- name: Cleanup Docker and KIND resources
run: |
docker system prune -a --force
docker volume prune --force
integration-operator-conftest:
name: Integration / Operator / Conftest
needs:
Expand Down Expand Up @@ -133,6 +141,10 @@ jobs:
KUBECONFIG: /home/runner/.kube/config
OPERATOR_NAMESPACE: starboard-system
OPERATOR_TARGET_NAMESPACES: default
- name: Cleanup Docker and KIND resources
run: |
docker system prune -a --force
docker volume prune --force
release:
name: Release
needs:
Expand Down Expand Up @@ -172,3 +184,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Update new version for plugin 'starboard' in krew-index
# uses: rajatjindal/krew-release-bot@v0.0.43
- name: Cleanup Docker and KIND resources
run: |
docker system prune -a --force
docker volume prune --force
- name: Check disk usage
run: df -h

0 comments on commit f136085

Please sign in to comment.