Skip to content

Commit 4e868c3

Browse files
committed
chore: Add cache for GitHub workflow.
1 parent 361cb08 commit 4e868c3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ jobs:
7070
file: deploy/docker/allinone/Dockerfile
7171
push: true
7272
platforms: linux/amd64,linux/arm64
73+
cache-from: type=gha
74+
cache-to: type=gha,mode=max
7375
tags: |
7476
${{ env.PUSH_LATEST == 'true' && format('{0}/mcp-gateway-allinone:latest', env.DOCKER_HUB_USERNAME) || '' }}
7577
${{ format('{0}/mcp-gateway-allinone:{1}', env.DOCKER_HUB_USERNAME, github.ref_name) }}
@@ -85,6 +87,8 @@ jobs:
8587
file: deploy/docker/multi/apiserver/Dockerfile
8688
push: true
8789
platforms: linux/amd64,linux/arm64
90+
cache-from: type=gha
91+
cache-to: type=gha,mode=max
8892
tags: |
8993
${{ env.PUSH_LATEST == 'true' && format('{0}/mcp-gateway-apiserver:latest', env.DOCKER_HUB_USERNAME) || '' }}
9094
${{ format('{0}/mcp-gateway-apiserver:{1}', env.DOCKER_HUB_USERNAME, github.ref_name) }}
@@ -100,6 +104,8 @@ jobs:
100104
file: deploy/docker/multi/mcp-gateway/Dockerfile
101105
push: true
102106
platforms: linux/amd64,linux/arm64
107+
cache-from: type=gha
108+
cache-to: type=gha,mode=max
103109
tags: |
104110
${{ env.PUSH_LATEST == 'true' && format('{0}/mcp-gateway-mcp-gateway:latest', env.DOCKER_HUB_USERNAME) || '' }}
105111
${{ format('{0}/mcp-gateway-mcp-gateway:{1}', env.DOCKER_HUB_USERNAME, github.ref_name) }}
@@ -115,6 +121,8 @@ jobs:
115121
file: deploy/docker/multi/mock-user-svc/Dockerfile
116122
push: true
117123
platforms: linux/amd64,linux/arm64
124+
cache-from: type=gha
125+
cache-to: type=gha,mode=max
118126
tags: |
119127
${{ env.PUSH_LATEST == 'true' && format('{0}/mcp-gateway-mock-user-svc:latest', env.DOCKER_HUB_USERNAME) || '' }}
120128
${{ format('{0}/mcp-gateway-mock-user-svc:{1}', env.DOCKER_HUB_USERNAME, github.ref_name) }}

0 commit comments

Comments
 (0)