Skip to content

Commit 11adf5d

Browse files
committed
do not distribute build per arch - release workflow
1 parent a32ca01 commit 11adf5d

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,12 @@ on:
66
types: [published, edited]
77
env:
88
IMAGE_NAME: citydb-tool
9+
PLATFORMS: linux/amd64,linux/arm64
910

1011
jobs:
1112
build-push:
1213
runs-on: ubuntu-latest
13-
strategy:
14-
fail-fast: false
15-
matrix:
16-
platform:
17-
- linux/amd64
18-
- linux/arm64
14+
1915
steps:
2016
-
2117
name: Get release version without v
@@ -48,10 +44,12 @@ jobs:
4844
name: Set up QEMU
4945
uses: docker/setup-qemu-action@v3
5046
with:
51-
platforms: ${{ matrix.platform }}
47+
platforms: ${{ env.PLATFORMS }}
5248
-
5349
name: Set up Docker Buildx
5450
uses: docker/setup-buildx-action@v3
51+
with:
52+
platforms: ${{ env.PLATFORMS }}
5553
-
5654
name: Extract metadata (tags, labels) for docker image
5755
id: meta
@@ -83,7 +81,7 @@ jobs:
8381
push: true
8482
tags: ${{ steps.meta.outputs.tags }}
8583
labels: ${{ steps.meta.outputs.labels }}
86-
platforms: ${{ matrix.platform }}
84+
platforms: ${{ env.PLATFORMS }}
8785
build-args: |
8886
CITYDB_TOOL_VERSION=${{ steps.release_version.outputs.version }}
8987
-

0 commit comments

Comments
 (0)