diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 45b3210..c37bb8e 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -44,7 +44,7 @@ jobs: - uses: docker/build-push-action@15560696de535e4014efeff63c48f16952e52dd1 # v6.2.0 with: push: true - platforms: linux/amd64,linux/arm64 + platforms: ${{ matrix.image[2] }} tags: ghcr.io/emqx/${{ matrix.image[0] }}:${{ matrix.image[1] }} file: ${{ matrix.image[0] }}/Dockerfile context: ${{ matrix.image[0] }} diff --git a/foundationdb/platforms b/foundationdb/platforms new file mode 100644 index 0000000..303dc7a --- /dev/null +++ b/foundationdb/platforms @@ -0,0 +1 @@ +linux/amd64 diff --git a/generate-matrix.sh b/generate-matrix.sh index efd3711..0fa55a4 100755 --- a/generate-matrix.sh +++ b/generate-matrix.sh @@ -6,7 +6,12 @@ IMGS='' while read dir; do vsn=$(cat "${dir}/vsn") - img="[\"$dir\", \"$vsn\"]" + if [ -f "${dir}/platforms" ]; then + platforms=$(cat "${dir}/platforms") + else + platforms='linux/amd64,linux/arm64' + fi + img="[\"$dir\", \"$vsn\", \"$platforms\"]" if [ -n "$IMGS" ]; then IMGS="${IMGS},${img}" else