generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Don't create docker cache on PR - Change the way maven write caching works
- Loading branch information
1 parent
f4fab8c
commit 8fc8e6c
Showing
2 changed files
with
9 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ runs: | |
uses: ScribeMD/[email protected] | ||
with: | ||
key: docker-${{ runner.os }}-${{ hashFiles('docker-compose.yml') }} | ||
read-only: true | ||
- name: Restore Go Modules Cache | ||
id: cache-go-modules | ||
uses: actions/cache/restore@v4 | ||
|
@@ -28,7 +29,6 @@ runs: | |
with: | ||
path: | | ||
~/.m2/repository | ||
**SNAPSHOT** | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
|
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 |
---|---|---|
|
@@ -35,6 +35,10 @@ jobs: | |
~/go/pkg/mod | ||
${{ steps.find-go-build-cache.outputs.cache }} | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
- name: Delete Maven Snapshots | ||
id: maven-delete-snapshots | ||
run: | | ||
find ~/.m2/repository -type d -name "*SNAPSHOT" -exec rm -rf {} + | ||
- name: Save Maven Modules Cache | ||
id: cache-maven | ||
uses: actions/cache/save@v4 | ||
|
@@ -49,3 +53,7 @@ jobs: | |
~/.pnpm-store | ||
node_modules | ||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
- name: Save Docker Images | ||
uses: ScribeMD/[email protected] | ||
with: | ||
key: docker-${{ runner.os }}-${{ hashFiles('docker-compose.yml') }} |