Skip to content

Commit 056bcba

Browse files
committed
used pushed images as cache source
1 parent 2e14a73 commit 056bcba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build_images.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
${{ matrix.version.latest && format('{0}:latest', env.IMAGE_NAME) || '' }}
5555
cache-from: |
5656
type=local,src=/tmp/.buildx-cache
57+
${{ env.IMAGE_NAME }}:latest-python${{ matrix.version.python }}
5758
cache-to: type=local,dest=/tmp/.buildx-cache-new
5859

5960
- name: Build slim docker image
@@ -71,6 +72,8 @@ jobs:
7172
cache-from: |
7273
type=local,src=/tmp/.buildx-cache
7374
type=local,src=/tmp/.buildx-cache-new
75+
${{ env.IMAGE_NAME }}:latest-python${{ matrix.version.python }}
76+
${{ env.IMAGE_NAME }}:${{ env.TAG }}-slim-python${{ matrix.version.python }}
7477
cache-to: type=local,dest=/tmp/.buildx-cache-new
7578

7679
# Temp fix

0 commit comments

Comments
 (0)