Skip to content

Commit cee57d6

Browse files
committed
add cache
1 parent 24d86ea commit cee57d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ jobs:
110110
image: amazon-builder:${{ github.sha }}
111111
run: /build.sh
112112
options: -v ${{ github.workspace }}/build/package/rpm:/rpm
113+
cache-from: type=local,src=/tmp/.buildx-cache
113114
- name: Build Image Amazon 2
114115
uses: docker/build-push-action@v2
115116
with:
@@ -127,6 +128,7 @@ jobs:
127128
image: amazon2-builder:${{ github.sha }}
128129
run: /build.sh
129130
options: -v ${{ github.workspace }}/build/package/rpm:/rpm
131+
cache-from: type=local,src=/tmp/.buildx-cache
130132
- name: Build Image Centos 7
131133
uses: docker/build-push-action@v2
132134
with:
@@ -144,6 +146,7 @@ jobs:
144146
image: centos7-builder:${{ github.sha }}
145147
run: /build.sh
146148
options: -v ${{ github.workspace }}/build/package/rpm:/rpm
149+
cache-from: type=local,src=/tmp/.buildx-cache
147150
- name: Build Image Ubuntu Xenial
148151
uses: docker/build-push-action@v2
149152
with:
@@ -162,6 +165,7 @@ jobs:
162165
image: ubuntu-xenial-builder:${{ github.sha }}
163166
run: /build.sh
164167
options: -v ${{ github.workspace }}/build/package/debian:/debian
168+
cache-from: type=local,src=/tmp/.buildx-cache
165169
- name: Build Image Ubuntu Bionic
166170
uses: docker/build-push-action@v2
167171
with:
@@ -180,6 +184,7 @@ jobs:
180184
image: ubuntu-bionic-builder:${{ github.sha }}
181185
run: /build.sh
182186
options: -v ${{ github.workspace }}/build/package/debian:/debian
187+
cache-from: type=local,src=/tmp/.buildx-cache
183188
- name: Build Image Ubuntu Focal
184189
uses: docker/build-push-action@v2
185190
with:
@@ -198,6 +203,7 @@ jobs:
198203
image: ubuntu-focal-builder:${{ github.sha }}
199204
run: /build.sh
200205
options: -v ${{ github.workspace }}/build/package/debian:/debian
206+
cache-from: type=local,src=/tmp/.buildx-cache
201207
- name: Build Image Ubuntu Groovy
202208
uses: docker/build-push-action@v2
203209
with:
@@ -216,3 +222,4 @@ jobs:
216222
image: ubuntu-groovy-builder:${{ github.sha }}
217223
run: /build.sh
218224
options: -v ${{ github.workspace }}/build/package/debian:/debian
225+
cache-from: type=local,src=/tmp/.buildx-cache

0 commit comments

Comments
 (0)