-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cleanup and disk usage checks to GitHub Actions workflow. (#1401)
- Implement cleanup steps for Docker and KIND resources to prevent disk space errors.
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | ||
|
@@ -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: | ||
|
@@ -172,3 +184,9 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: Update new version for plugin 'starboard' in krew-index | ||
# uses: rajatjindal/[email protected] | ||
- name: Cleanup Docker and KIND resources | ||
run: | | ||
docker system prune -a --force | ||
docker volume prune --force | ||
- name: Check disk usage | ||
run: df -h |