Skip to content

Commit

Permalink
Update reusable-builder-deb.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver committed Jun 22, 2024
1 parent c91b8e1 commit 28d15d0
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/reusable-builder-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
id: buildx
with:
install: true

- name: Available Docker Platforms
run: echo ${{ steps.buildx.outputs.platforms }}

- name: Build Debian package
id: builder
env:
Expand All @@ -84,12 +93,13 @@ jobs:
run: |
TARGET="${GOARCH}"
if [[ -n "${GOARM}" ]]; then
TARGET="${GOARCH}v${GOARM}"
TARGET="${GOARCH}/v${GOARM}"
fi
PKG_ARCH="${TARGET//v8}"
PKG_ARCH="${TARGET//\/v8}"
PKG_ARCH="${PKG_ARCH//32}"
make debian DEB_IMG_ARCH=${TARGET} PKG_ARCH=${PKG_ARCH}
echo "filename=${{ inputs.product }}-deb-${PKG_ARCH}" >> $GITHUB_OUTPUT
echo "DOCKER_PLATFORM: ${PKG_ARCH}"
make debian DOCKER_PLATFORM=${PKG_ARCH}
echo "filename=${{ inputs.product }}-deb-${PKG_ARCH//\/}" >> $GITHUB_OUTPUT
- name: Upload artifacts
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
Expand Down

0 comments on commit 28d15d0

Please sign in to comment.