Skip to content

Commit 28d15d0

Browse files
Update reusable-builder-deb.yml
1 parent c91b8e1 commit 28d15d0

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/reusable-builder-deb.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ jobs:
7575
- name: Set up QEMU
7676
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
7777

78+
- name: Set up Docker Buildx
79+
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
80+
id: buildx
81+
with:
82+
install: true
83+
84+
- name: Available Docker Platforms
85+
run: echo ${{ steps.buildx.outputs.platforms }}
86+
7887
- name: Build Debian package
7988
id: builder
8089
env:
@@ -84,12 +93,13 @@ jobs:
8493
run: |
8594
TARGET="${GOARCH}"
8695
if [[ -n "${GOARM}" ]]; then
87-
TARGET="${GOARCH}v${GOARM}"
96+
TARGET="${GOARCH}/v${GOARM}"
8897
fi
89-
PKG_ARCH="${TARGET//v8}"
98+
PKG_ARCH="${TARGET//\/v8}"
9099
PKG_ARCH="${PKG_ARCH//32}"
91-
make debian DEB_IMG_ARCH=${TARGET} PKG_ARCH=${PKG_ARCH}
92-
echo "filename=${{ inputs.product }}-deb-${PKG_ARCH}" >> $GITHUB_OUTPUT
100+
echo "DOCKER_PLATFORM: ${PKG_ARCH}"
101+
make debian DOCKER_PLATFORM=${PKG_ARCH}
102+
echo "filename=${{ inputs.product }}-deb-${PKG_ARCH//\/}" >> $GITHUB_OUTPUT
93103
94104
- name: Upload artifacts
95105
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2

0 commit comments

Comments
 (0)