From 687b9fc867e99d5b2d3a8082c20cb1fb4f031446 Mon Sep 17 00:00:00 2001 From: Hongli Lai Date: Fri, 26 Apr 2024 17:46:48 +0200 Subject: [PATCH] Publish CI job: free up disk space earlier --- .github/workflows/ci-cd-publish-test-production.yml | 6 +++--- .github/workflows/ci-cd-publish-test-production.yml.erb | 6 +++--- .github/workflows/ci-cd-publish-test-test.yml | 6 +++--- .github/workflows/ci-cd-publish-test-test.yml.erb | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci-cd-publish-test-production.yml b/.github/workflows/ci-cd-publish-test-production.yml index 27bdfdbd..5f901222 100644 --- a/.github/workflows/ci-cd-publish-test-production.yml +++ b/.github/workflows/ci-cd-publish-test-production.yml @@ -130,6 +130,9 @@ jobs: # Sets environment variable $LATEST_RELEASE_TAG run: ./internal-scripts/ci-cd/check-version-numbers-need-changing/determine-latest-release-tag.sh + - name: Free up disk space + run: sudo rm -rf /usr/share/dotnet "$AGENT_TOOLSDIRECTORY" + - name: Upload DEBs to repo run: ./internal-scripts/ci-cd/publish/publish-debs.rb pkgs/*/*.deb env: @@ -140,9 +143,6 @@ jobs: DRY_RUN: ${{ github.ref != 'refs/heads/main' }} CLEANUP: true - - name: Free up disk space - run: sudo rm -rf /usr/share/dotnet "$AGENT_TOOLSDIRECTORY" - - name: Upload RPMs to repo run: ./internal-scripts/ci-cd/publish/publish-rpms.rb pkgs/*/*.rpm env: diff --git a/.github/workflows/ci-cd-publish-test-production.yml.erb b/.github/workflows/ci-cd-publish-test-production.yml.erb index fb31ecb5..a4acf5d1 100644 --- a/.github/workflows/ci-cd-publish-test-production.yml.erb +++ b/.github/workflows/ci-cd-publish-test-production.yml.erb @@ -120,6 +120,9 @@ jobs: # Sets environment variable $LATEST_RELEASE_TAG run: ./internal-scripts/ci-cd/check-version-numbers-need-changing/determine-latest-release-tag.sh + - name: Free up disk space + run: sudo rm -rf /usr/share/dotnet "$AGENT_TOOLSDIRECTORY" + - name: Upload DEBs to repo run: ./internal-scripts/ci-cd/publish/publish-debs.rb pkgs/*/*.deb env: @@ -130,9 +133,6 @@ jobs: DRY_RUN: ${{ github.ref != 'refs/heads/main' }} CLEANUP: true - - name: Free up disk space - run: sudo rm -rf /usr/share/dotnet "$AGENT_TOOLSDIRECTORY" - - name: Upload RPMs to repo run: ./internal-scripts/ci-cd/publish/publish-rpms.rb pkgs/*/*.rpm env: diff --git a/.github/workflows/ci-cd-publish-test-test.yml b/.github/workflows/ci-cd-publish-test-test.yml index 3b14302c..16d78973 100644 --- a/.github/workflows/ci-cd-publish-test-test.yml +++ b/.github/workflows/ci-cd-publish-test-test.yml @@ -129,6 +129,9 @@ jobs: # Sets environment variable $LATEST_RELEASE_TAG run: ./internal-scripts/ci-cd/check-version-numbers-need-changing/determine-latest-release-tag.sh + - name: Free up disk space + run: sudo rm -rf /usr/share/dotnet "$AGENT_TOOLSDIRECTORY" + - name: Upload DEBs to repo run: ./internal-scripts/ci-cd/publish/publish-debs.rb pkgs/*/*.deb env: @@ -138,9 +141,6 @@ jobs: OVERWRITE_EXISTING: false CLEANUP: true - - name: Free up disk space - run: sudo rm -rf /usr/share/dotnet "$AGENT_TOOLSDIRECTORY" - - name: Upload RPMs to repo run: ./internal-scripts/ci-cd/publish/publish-rpms.rb pkgs/*/*.rpm env: diff --git a/.github/workflows/ci-cd-publish-test-test.yml.erb b/.github/workflows/ci-cd-publish-test-test.yml.erb index 53157350..c6d60e4b 100644 --- a/.github/workflows/ci-cd-publish-test-test.yml.erb +++ b/.github/workflows/ci-cd-publish-test-test.yml.erb @@ -119,6 +119,9 @@ jobs: # Sets environment variable $LATEST_RELEASE_TAG run: ./internal-scripts/ci-cd/check-version-numbers-need-changing/determine-latest-release-tag.sh + - name: Free up disk space + run: sudo rm -rf /usr/share/dotnet "$AGENT_TOOLSDIRECTORY" + - name: Upload DEBs to repo run: ./internal-scripts/ci-cd/publish/publish-debs.rb pkgs/*/*.deb env: @@ -128,9 +131,6 @@ jobs: OVERWRITE_EXISTING: false CLEANUP: true - - name: Free up disk space - run: sudo rm -rf /usr/share/dotnet "$AGENT_TOOLSDIRECTORY" - - name: Upload RPMs to repo run: ./internal-scripts/ci-cd/publish/publish-rpms.rb pkgs/*/*.rpm env: