Retry on cache failure (2) (#1422)
This commit is contained in:
14
.github/workflows/composites/cache/action.yaml
vendored
14
.github/workflows/composites/cache/action.yaml
vendored
@@ -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') }}
|
||||
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user