File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 21
21
with :
22
22
platforms : arm64
23
23
24
- - name : Build Docker Image for ARM64
25
- run : docker build --platform linux/arm64 -t build-env .
24
+ - name : Set up Docker Buildx
25
+ uses : docker/setup-buildx-action@v2
26
+
27
+ - name : Cache Docker layers
28
+ uses : actions/cache@v3
29
+ with :
30
+ path : /tmp/.buildx-cache
31
+ key : ${{ runner.os }}-buildx-${{ github.sha }}
32
+ restore-keys : |
33
+ ${{ runner.os }}-buildx-
34
+
35
+ - name : Build Docker Image for ARM64 with Cache
36
+ uses : docker/build-push-action@v5
37
+ with :
38
+ push : false
39
+ tags : build-env:latest
40
+ platforms : linux/arm64
41
+ cache-from : type=local,src=/tmp/.buildx-cache
42
+ cache-to : type=local,dest=/tmp/.buildx-cache,mode=max
26
43
27
44
- name : Run Docker Container for ARM64
28
45
run : |
You can’t perform that action at this time.
0 commit comments