Skip to content

Commit 4b21d04

Browse files
authored
Merge pull request #415 from namada-net/improve-docker-cache-ci
added docker cache scope to ci
2 parents 378fd21 + feb716f commit 4b21d04

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ jobs:
9191
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
9292
tags: ${{ env.REGISTRY_URL }}/${{ env.REPOSITORY }}:${{ matrix.docker.image }}-${{ steps.get_version.outputs.version-without-v }}
9393
labels: ${{ steps.meta.outputs.labels }}
94-
cache-from: type=gha
95-
cache-to: type=gha,mode=max
94+
cache-from: type=gha, scope=${{ matrix.docker.image }}, mode=max
95+
cache-to: type=gha, scope=${{ matrix.docker.image }}, mode=max
9696

9797
swagger-npm-package:
9898
runs-on: ubuntu-latest

.github/workflows/queue_and_merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ jobs:
170170
push: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
171171
tags: ${{ steps.meta.outputs.tags }}
172172
labels: ${{ steps.meta.outputs.labels }}
173-
cache-from: type=gha
174-
cache-to: type=gha,mode=max
173+
cache-from: type=gha, scope=${{ matrix.docker.image }}, mode=max
174+
cache-to: type=gha, scope=${{ matrix.docker.image }}, mode=max
175175

176176
can_enqueue:
177177
needs: [clippy, format, docker, validate-swagger]

0 commit comments

Comments
 (0)