Skip to content

Commit a32ca01

Browse files
committed
do not distribute build per arch - edge workflow
1 parent d0e9195 commit a32ca01

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/docker-build-push-edge.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,12 @@ on:
77
- main
88
env:
99
IMAGE_NAME: citydb-tool
10+
PLATFORMS: linux/amd64,linux/arm64
1011

1112
jobs:
1213
build-push:
1314
runs-on: ubuntu-latest
14-
strategy:
15-
fail-fast: false
16-
matrix:
17-
platform:
18-
- linux/amd64
19-
- linux/arm64
15+
2016
steps:
2117
-
2218
name: Parse short sha
@@ -49,10 +45,12 @@ jobs:
4945
name: Set up QEMU
5046
uses: docker/setup-qemu-action@v3
5147
with:
52-
platforms: ${{ matrix.platform }}
48+
platforms: ${{ env.PLATFORMS }}
5349
-
5450
name: Set up Docker Buildx
5551
uses: docker/setup-buildx-action@v3
52+
with:
53+
platforms: ${{ env.PLATFORMS }}
5654
-
5755
name: Extract metadata (tags, labels) for docker image
5856
id: meta
@@ -84,7 +82,7 @@ jobs:
8482
push: true
8583
tags: ${{ steps.meta.outputs.tags }}
8684
labels: ${{ steps.meta.outputs.labels }}
87-
platforms: ${{ matrix.platform }}
85+
platforms: ${{ env.PLATFORMS }}
8886
build-args: |
8987
CITYDB_TOOL_VERSION=${{ steps.short-sha.outputs.sha }}
9088
-

0 commit comments

Comments
 (0)