Skip to content

Commit dcc7bae

Browse files
authored
fix: pipeline cache setting for ecr builds (#37)
* fix: pipeline cache setting for ecr builds * fix: set commit sha for step * fix: test cache-to setting * fix: update sha ref * fix: inf-2225 fix ci pipeline registry ecr cache
1 parent cd9bc5b commit dcc7bae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-image.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ jobs:
172172
APP_NAME=${{ github.event.deployment.payload.name }}
173173
ENVIRONMENT=${{ github.event.deployment.payload.env }}
174174
NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }}
175-
cache-from: type=registry,ref=${{ inputs.registryHostname }}/${{ github.event.deployment.payload.name }}
175+
cache-from: type=registry,ref=${{ inputs.registryHostname }}/${{ github.event.deployment.payload.name }}:cache
176176
cache-to: type=inline
177177
context: ${{ github.event.deployment.payload.container.context }}
178178
load: true
@@ -313,7 +313,7 @@ jobs:
313313
APP_NAME=${{ github.event.deployment.payload.name }}
314314
ENVIRONMENT=${{ github.event.deployment.payload.env }}
315315
NPM_GITHUB_TOKEN=${{ secrets.npmGithubReadToken }}
316-
cache-from: type=registry,ref=${{ inputs.registryHostname }}/${{ github.event.deployment.payload.name }}
316+
cache-from: type=registry,ref=${{ inputs.registryHostname }}/${{ github.event.deployment.payload.name }}:cache
317317
cache-to: type=inline
318318
context: ${{ github.event.deployment.payload.container.context }}
319319
load: true

0 commit comments

Comments
 (0)