File tree Expand file tree Collapse file tree 2 files changed +12
-16
lines changed Expand file tree Collapse file tree 2 files changed +12
-16
lines changed Original file line number Diff line number Diff line change 7
7
- main
8
8
env :
9
9
IMAGE_NAME : citydb-tool
10
+ PLATFORMS : linux/amd64,linux/arm64
10
11
11
12
jobs :
12
13
build-push :
13
14
runs-on : ubuntu-latest
14
- strategy :
15
- fail-fast : false
16
- matrix :
17
- platform :
18
- - linux/amd64
19
- - linux/arm64
15
+
20
16
steps :
21
17
-
22
18
name : Parse short sha
@@ -49,10 +45,12 @@ jobs:
49
45
name : Set up QEMU
50
46
uses : docker/setup-qemu-action@v3
51
47
with :
52
- platforms : ${{ matrix.platform }}
48
+ platforms : ${{ env.PLATFORMS }}
53
49
-
54
50
name : Set up Docker Buildx
55
51
uses : docker/setup-buildx-action@v3
52
+ with :
53
+ platforms : ${{ env.PLATFORMS }}
56
54
-
57
55
name : Extract metadata (tags, labels) for docker image
58
56
id : meta
84
82
push : true
85
83
tags : ${{ steps.meta.outputs.tags }}
86
84
labels : ${{ steps.meta.outputs.labels }}
87
- platforms : ${{ matrix.platform }}
85
+ platforms : ${{ env.PLATFORMS }}
88
86
build-args : |
89
87
CITYDB_TOOL_VERSION=${{ steps.short-sha.outputs.sha }}
90
88
-
Original file line number Diff line number Diff line change 6
6
types : [published, edited]
7
7
env :
8
8
IMAGE_NAME : citydb-tool
9
+ PLATFORMS : linux/amd64,linux/arm64
9
10
10
11
jobs :
11
12
build-push :
12
13
runs-on : ubuntu-latest
13
- strategy :
14
- fail-fast : false
15
- matrix :
16
- platform :
17
- - linux/amd64
18
- - linux/arm64
14
+
19
15
steps :
20
16
-
21
17
name : Get release version without v
@@ -48,10 +44,12 @@ jobs:
48
44
name : Set up QEMU
49
45
uses : docker/setup-qemu-action@v3
50
46
with :
51
- platforms : ${{ matrix.platform }}
47
+ platforms : ${{ env.PLATFORMS }}
52
48
-
53
49
name : Set up Docker Buildx
54
50
uses : docker/setup-buildx-action@v3
51
+ with :
52
+ platforms : ${{ env.PLATFORMS }}
55
53
-
56
54
name : Extract metadata (tags, labels) for docker image
57
55
id : meta
83
81
push : true
84
82
tags : ${{ steps.meta.outputs.tags }}
85
83
labels : ${{ steps.meta.outputs.labels }}
86
- platforms : ${{ matrix.platform }}
84
+ platforms : ${{ env.PLATFORMS }}
87
85
build-args : |
88
86
CITYDB_TOOL_VERSION=${{ steps.release_version.outputs.version }}
89
87
-
You can’t perform that action at this time.
0 commit comments