Skip to content

Commit

Permalink
Fix Docker Cache
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Mitchell <[email protected]>
  • Loading branch information
gmitch215 authored Aug 27, 2024
1 parent 3bff6f5 commit 9f47b0a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,18 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: Generate Docker Cache Key
id: docker_cache_key
run: |
files=$(find . -type f \( -name 'docker-compose.yml' -o -name 'Dockerfile' \))
file_contents=$(cat $files)
key=$(echo "${file_contents}" | sha1sum | awk '{print $1}')
echo "key=${key}" >> "$GITHUB_OUTPUT"
- name: Load Docker Cache
uses: jpribyl/[email protected]
continue-on-error: true
uses: ScribeMD/[email protected]
with:
key: docker-${{ runner.os }}-${{ steps.docker_cache_key.outputs.key }}
- name: Change Permissions
run: chmod +x ./gradlew
- name: Gradle Test
Expand Down

0 comments on commit 9f47b0a

Please sign in to comment.