Skip to content

Commit c3724b7

Browse files
committed
export and import build cache to gha
Signed-off-by: Ryan Lo <wenchih@apache.org>
1 parent e3a893a commit c3724b7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/flyte-core-v2.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ jobs:
100100
set: |
101101
*.platform=${{ matrix.platforms }}
102102
*.args.tags="ghcr.io/flyteorg/flyte/${{ matrix.target }}:${{ env.SHORT_SHA }}"
103-
103+
*.cache-from=type=gha,scope=${{ matrix.target }}-${{ matrix.platforms }}
104+
*.cache-to=type=gha,mode=max,scope=${{ matrix.target }}-${{ matrix.platforms }}
104105
105106
- name: Build and push images
106107
if: github.event_name == 'push'
@@ -113,4 +114,6 @@ jobs:
113114
set: |
114115
*.platform=${{ matrix.platforms }}
115116
*.args.tags="ghcr.io/flyteorg/flyte/${{ matrix.target }}:${{ env.SHORT_SHA }}"
117+
*.cache-from=type=gha,scope=${{ matrix.target }}-${{ matrix.platforms }}
118+
*.cache-to=type=gha,mode=max,scope=${{ matrix.target }}-${{ matrix.platforms }}
116119

0 commit comments

Comments
 (0)