From f0d4a6faec70d7d0f7be9c759e86a3a534adeed7 Mon Sep 17 00:00:00 2001 From: Madhava Jay Date: Thu, 26 Oct 2023 14:28:28 +1000 Subject: [PATCH] Forgot slashes in bash command --- .github/workflows/container-scan.yml | 8 ++++++++ .github/workflows/pr-tests-enclave.yml | 3 +++ .github/workflows/pr-tests-frontend.yml | 3 +++ .github/workflows/pr-tests-stack-arm64.yml | 3 +++ .github/workflows/pr-tests-stack.yml | 12 +++++++++++- .github/workflows/pr-tests-syft.yml | 3 +++ tox.ini | 4 ++-- 7 files changed, 33 insertions(+), 3 deletions(-) diff --git a/.github/workflows/container-scan.yml b/.github/workflows/container-scan.yml index a3e09f2aacd..8f1bbe938e3 100644 --- a/.github/workflows/container-scan.yml +++ b/.github/workflows/container-scan.yml @@ -21,9 +21,13 @@ jobs: # free 10GB of space - name: Remove unnecessary files + if: matrix.os == 'ubuntu-latest' run: | sudo rm -rf /usr/share/dotnet sudo rm -rf "$AGENT_TOOLSDIRECTORY" + docker image prune --all --force + docker builder prune --all --force + docker system prune --all --force # Build the docker image for testing - name: Build a Docker image @@ -64,9 +68,13 @@ jobs: # free 10GB of space - name: Remove unnecessary files + if: matrix.os == 'ubuntu-latest' run: | sudo rm -rf /usr/share/dotnet sudo rm -rf "$AGENT_TOOLSDIRECTORY" + docker image prune --all --force + docker builder prune --all --force + docker system prune --all --force # Build the docker image for testing - name: Build a Docker image diff --git a/.github/workflows/pr-tests-enclave.yml b/.github/workflows/pr-tests-enclave.yml index 16921240a39..21b89e9bcf8 100644 --- a/.github/workflows/pr-tests-enclave.yml +++ b/.github/workflows/pr-tests-enclave.yml @@ -37,6 +37,9 @@ jobs: run: | sudo rm -rf /usr/share/dotnet sudo rm -rf "$AGENT_TOOLSDIRECTORY" + docker image prune --all --force + docker builder prune --all --force + docker system prune --all --force - name: Check for file changes uses: dorny/paths-filter@v2 diff --git a/.github/workflows/pr-tests-frontend.yml b/.github/workflows/pr-tests-frontend.yml index aa75efbffe3..beca4a856d4 100644 --- a/.github/workflows/pr-tests-frontend.yml +++ b/.github/workflows/pr-tests-frontend.yml @@ -114,6 +114,9 @@ jobs: run: | sudo rm -rf /usr/share/dotnet sudo rm -rf "$AGENT_TOOLSDIRECTORY" + docker image prune --all --force + docker builder prune --all --force + docker system prune --all --force - name: Check for file changes uses: dorny/paths-filter@v2 diff --git a/.github/workflows/pr-tests-stack-arm64.yml b/.github/workflows/pr-tests-stack-arm64.yml index 98406271f38..38dca0b7490 100644 --- a/.github/workflows/pr-tests-stack-arm64.yml +++ b/.github/workflows/pr-tests-stack-arm64.yml @@ -36,6 +36,9 @@ jobs: run: | sudo rm -rf /usr/share/dotnet sudo rm -rf "$AGENT_TOOLSDIRECTORY" + docker image prune --all --force + docker builder prune --all --force + docker system prune --all --force - name: Check for file changes uses: dorny/paths-filter@v2 diff --git a/.github/workflows/pr-tests-stack.yml b/.github/workflows/pr-tests-stack.yml index 867314569fc..9f4d2cd7021 100644 --- a/.github/workflows/pr-tests-stack.yml +++ b/.github/workflows/pr-tests-stack.yml @@ -250,7 +250,7 @@ jobs: max-parallel: 99 matrix: # os: [ubuntu-latest, macos-latest, windows-latest, windows] - os: [om-ci-16vcpu-ubuntu2204] + os: [ubuntu-latest] python-version: ["3.11"] notebook-paths: ["api/0.8"] fail-fast: false @@ -271,6 +271,16 @@ jobs: - uses: actions/checkout@v3 + # free 10GB of space + - name: Remove unnecessary files + if: matrix.os == 'ubuntu-latest' + run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + docker image prune --all --force + docker builder prune --all --force + docker system prune --all --force + - name: Check for file changes uses: dorny/paths-filter@v2 id: changes diff --git a/.github/workflows/pr-tests-syft.yml b/.github/workflows/pr-tests-syft.yml index 537801d5b77..9923b293ec8 100644 --- a/.github/workflows/pr-tests-syft.yml +++ b/.github/workflows/pr-tests-syft.yml @@ -215,6 +215,9 @@ jobs: run: | sudo rm -rf /usr/share/dotnet sudo rm -rf "$AGENT_TOOLSDIRECTORY" + docker image prune --all --force + docker builder prune --all --force + docker system prune --all --force - name: Check for file changes uses: dorny/paths-filter@v2 diff --git a/tox.ini b/tox.ini index 0ce9a4c25b1..2a8ceeaa162 100644 --- a/tox.ini +++ b/tox.ini @@ -699,8 +699,8 @@ commands = # free up build cache after build of images bash -c 'if [[ "$GITHUB_CI" != "false" ]]; then \ - docker image prune --all --force - docker builder prune --all --force + docker image prune --all --force; \ + docker builder prune --all --force; \ fi' sleep 30