Skip to content

Commit 6044aa6

Browse files
committed
add caching for Docker image build and push
1 parent 98fa89f commit 6044aa6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/deploy-ui.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,6 @@ jobs:
6868
context: "{{defaultContext}}:frontend"
6969
file: Dockerfile.prod
7070
push: true
71-
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/taskaza-ui:${{ github.sha }}
71+
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/taskaza-ui:${{ github.sha }}
72+
cache-from: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/taskaza-frontend:buildcache
73+
cache-to: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/taskaza-frontend:buildcache,mode=max

0 commit comments

Comments
 (0)