Skip to content

Commit 4299f46

Browse files
committed
chore: enable cache in local builder
1 parent ac90776 commit 4299f46

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,19 @@ jobs:
8686
driver: cloud
8787
endpoint: docker/collab-bu
8888

89-
- name: Build and push
89+
- name: Build and push (local)
90+
if: ${{ inputs.builder_type == 'local' }}
91+
uses: docker/build-push-action@v5
92+
with:
93+
context: .
94+
platforms: ${{ steps.determine_platforms.outputs.platforms }}
95+
push: true
96+
tags: ${{ vars.DOCKER_HUB_ACCOUNT }}/dbc-demo:latest
97+
cache-from: type=gha
98+
cache-to: type=gha,mode=max
99+
100+
- name: Build and push (cloud)
101+
if: ${{ inputs.builder_type != 'local' }}
90102
uses: docker/build-push-action@v5
91103
with:
92104
context: .

0 commit comments

Comments
 (0)