Skip to content

Commit

Permalink
Sanitize user home on GitHub Action job start on Atlas
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Oct 25, 2024
1 parent 543e095 commit 4e8eb91
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/ci-prerequisites-atlas.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Reclaims disk space and sanitizes user home on Atlas infrastructure

# We use the GitHub cache for the relevant parts of these directories.
# Also, we do not want to keep things like ~/.gradle/build-scan-data.
rm -rf ~/.gradle/
rm -rf ~/.m2/
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
if: "${{ github.event_name == 'pull_request' && !cancelled() }}"
with:
name: build-scan-data-${{ matrix.rdbms }}
path: build-scan-data.tgz
path: ~/.gradle/build-scan-data

- name: Upload test reports (if Gradle failed)
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -129,8 +129,8 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Reclaim Disk Space
run: .github/ci-prerequisites.sh
- name: Reclaim disk space and sanitize user home
run: .github/ci-prerequisites-atlas.sh
- name: Start database
env:
RDBMS: ${{ matrix.rdbms }}
Expand Down

0 comments on commit 4e8eb91

Please sign in to comment.