Skip to content

Commit 86b6a2d

Browse files
authored
Add caching for Docker image builds
1 parent b68a803 commit 86b6a2d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ jobs:
5858
tags: |
5959
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME }}:${{ steps.vars.outputs.version }}
6060
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME }}:latest
61+
cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME }}:buildcache
62+
cache-to: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME }}:buildcache,mode=max
6163
build-args: |
6264
DOTNET_CLI_TELEMETRY_OPTOUT=1
6365
DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1

0 commit comments

Comments
 (0)