File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 18
18
jobs :
19
19
build :
20
20
runs-on : ubuntu-latest
21
+ strategy :
22
+ matrix :
23
+ platform : [ linux/amd64, linux/arm64 ]
21
24
steps :
22
25
- uses : actions/checkout@v3
23
26
- uses : actions/cache@v2
@@ -52,14 +55,15 @@ jobs:
52
55
- name : Set up QEMU
53
56
uses : docker/setup-qemu-action@v1
54
57
- name : Set up Docker Buildx
55
- id : buildx
58
+ if : ${{ matrix.platform != 'linux/amd64' }}
56
59
uses : docker/setup-buildx-action@v1
57
- - name : Build and push image
60
+ id : buildx
61
+ - name : Build and push image (${{ matrix.platform }})
58
62
uses : docker/build-push-action@v2
59
63
with :
60
64
context : .
61
65
file : ./build/Dockerfile
62
- platforms : linux/amd64,linux/arm64
66
+ platforms : ${{ matrix.platform }}
63
67
tags : ${{ steps.meta.outputs.tags }}
64
68
labels : ${{ steps.meta.outputs.labels }}
65
69
build-args : |
You can’t perform that action at this time.
0 commit comments