File tree 1 file changed +5
-12
lines changed
1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -48,29 +48,22 @@ jobs:
48
48
uses : docker/metadata-action@v3
49
49
with :
50
50
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-sommelier
51
- - name : build-and-push-linux-amd64
52
- uses : docker/build-push-action@v2
53
- with :
54
- context : .
55
- file : Dockerfile
56
- push : true
57
- platforms : linux/amd64
58
- tags : ${{ steps.meta.outputs.tags }}
59
- labels : ${{ steps.meta.outputs.labels }}
60
- builder : ${{ steps.buildx.outputs.name }}
61
- - name : build-and-push-linux-arm64
51
+ - name : build-and-push
62
52
uses : docker/build-push-action@v2
63
53
with :
64
54
context : .
65
55
file : Dockerfile
66
56
push : true
67
- platforms : linux/arm64/v8
57
+ platforms : linux/amd64, linux/ arm64/v8
68
58
tags : ${{ steps.meta.outputs.tags }}
69
59
labels : ${{ steps.meta.outputs.labels }}
70
60
builder : ${{ steps.buildx.outputs.name }}
61
+ cache-from : type=local,src=/tmp/.buildx-cache
62
+ cache-to : type=local,mode=max,dest=/tmp/.buildx-cache-new
71
63
- name : Move Docker cache
72
64
run : |
73
65
rm -rf /tmp/.buildx-cache
66
+ mv /tmp/.buildx-cache-new /tmp/.buildx-cache
74
67
75
68
hardhat-build :
76
69
permissions :
You can’t perform that action at this time.
0 commit comments