Skip to content

Commit d775cdd

Browse files
committed
ci(docker): improve performance
1 parent 3750bef commit d775cdd

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/docker-build-push.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010

1111
permissions: {}
1212

13+
env:
14+
DOCKER_BUILDKIT: 1
15+
1316
jobs:
1417
docker-build-push:
1518
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
@@ -71,6 +74,8 @@ jobs:
7174
provenance: mode=max
7275
tags: ${{ steps.meta.outputs.tags }}
7376
labels: ${{ steps.meta.outputs.labels }}
77+
cache-from: type=gha
78+
cache-to: type=gha,mode=max
7479
- name: Sign the Docker image
7580
if: github.ref == 'refs/heads/main'
7681
working-directory: ${{ env.IMAGE }}

.github/workflows/docker-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77

88
permissions: {}
99

10+
env:
11+
DOCKER_BUILDKIT: 1
12+
1013
jobs:
1114
docker-release:
1215
if: startsWith(github.ref, 'refs/tags/')
@@ -62,6 +65,8 @@ jobs:
6265
provenance: mode=max
6366
tags: ${{ steps.meta.outputs.tags }}
6467
labels: ${{ steps.meta.outputs.labels }}
68+
cache-from: type=gha
69+
cache-to: type=gha,mode=max
6570
- name: Sign the Docker image
6671
working-directory: ${{ env.IMAGE }}
6772
env:

0 commit comments

Comments
 (0)