Retry on cache failure (2) (#1422)

This commit is contained in:
erabii
2023-08-31 03:40:32 +03:00
committed by GitHub
parent 078fba15b5
commit 8b73e5f331
3 changed files with 24 additions and 15 deletions

View File

@@ -3,9 +3,13 @@ description: cache
runs:
using: "composite"
steps:
- uses: buildjet/cache@v3
- uses: Wandalen/wretry.action@master
with:
path: ~/.m2/repository
key: ${{ runner.os }}-cache-${{ env.BRANCH_NAME }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-cache-${{ env.BRANCH_NAME }}-${{ hashFiles('**/pom.xml') }}
attempt_limit: 3
action: buildjet/cache@v3
with: |
path: ~/.m2/repository
key: ${{ runner.os }}-cache-${{ env.BRANCH_NAME }}-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-cache-${{ env.BRANCH_NAME }}-${{ hashFiles('**/pom.xml') }}

View File

@@ -7,10 +7,11 @@ runs:
using: "composite"
steps:
- uses: buildjet/cache@v3
- uses: Wandalen/wretry.action@master
with:
path: /tmp/docker/images
key: docker-images-cache-${{ env.DOCKER_IMAGES_KEY }}
restore-keys: docker-images-cache-${{ env.DOCKER_IMAGES_KEY }}
attempt_limit: 3
action: buildjet/cache@v3
with: |
path: /tmp/docker/images
key: docker-images-cache-${{ env.DOCKER_IMAGES_KEY }}
restore-keys: docker-images-cache-${{ env.DOCKER_IMAGES_KEY }}

View File

@@ -6,10 +6,14 @@ description: upload docker images
runs:
using: "composite"
steps:
- uses: buildjet/cache@v3
- uses: Wandalen/wretry.action@master
with:
path: /tmp/docker/images
key: docker-images-cache-${{ env.DOCKER_IMAGES_KEY }}
restore-keys: docker-images-cache-${{ env.DOCKER_IMAGES_KEY }}
attempt_limit: 3
action: buildjet/cache@v3
with: |
path: /tmp/docker/images
key: docker-images-cache-${{ env.DOCKER_IMAGES_KEY }}
restore-keys: docker-images-cache-${{ env.DOCKER_IMAGES_KEY }}