add bc image for amd

Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
Ronni Skansing
2026-01-27 18:45:38 +01:00
parent 151eee6c03
commit 76a49ddc6c
2 changed files with 22 additions and 0 deletions

View File

@@ -128,6 +128,12 @@ jobs:
phishingclub \ phishingclub \
phishingclub.sig phishingclub.sig
# create legacy-named package (amd64) for backward compatibility with pre-arm versions
tar -czf packages/phishingclub_${{ steps.get_version.outputs.VERSION }}.tar.gz \
-C build/amd64 \
phishingclub \
phishingclub.sig
- name: Build and push multi-arch Docker image - name: Build and push multi-arch Docker image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
@@ -186,6 +192,7 @@ jobs:
gh release create ${{ steps.get_version.outputs.TAG }} \ gh release create ${{ steps.get_version.outputs.TAG }} \
./packages/phishingclub_${{ steps.get_version.outputs.VERSION }}_linux_amd64.tar.gz \ ./packages/phishingclub_${{ steps.get_version.outputs.VERSION }}_linux_amd64.tar.gz \
./packages/phishingclub_${{ steps.get_version.outputs.VERSION }}_linux_arm64.tar.gz \ ./packages/phishingclub_${{ steps.get_version.outputs.VERSION }}_linux_arm64.tar.gz \
./packages/phishingclub_${{ steps.get_version.outputs.VERSION }}.tar.gz \
--title "PhishingClub ${{ steps.get_version.outputs.TAG }}" \ --title "PhishingClub ${{ steps.get_version.outputs.TAG }}" \
--notes "${{ steps.get_release_notes.outputs.NOTES }}" --notes "${{ steps.get_release_notes.outputs.NOTES }}"

View File

@@ -150,6 +150,20 @@ jobs:
echo "✅ ARM64 package created without signature" echo "✅ ARM64 package created without signature"
fi fi
# create legacy-named package (amd64) for backward compatibility with pre-arm versions
if [ -f build/amd64/phishingclub.sig ]; then
tar -czf packages/phishingclub_${{ steps.get_version.outputs.VERSION }}.tar.gz \
-C build/amd64 \
phishingclub \
phishingclub.sig
echo "✅ Legacy package created with signature"
else
tar -czf packages/phishingclub_${{ steps.get_version.outputs.VERSION }}.tar.gz \
-C build/amd64 \
phishingclub
echo "✅ Legacy package created without signature"
fi
- name: Build and push test multi-arch Docker image - name: Build and push test multi-arch Docker image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
@@ -210,4 +224,5 @@ jobs:
build/arm64/phishingclub.sig build/arm64/phishingclub.sig
packages/phishingclub_${{ steps.get_version.outputs.VERSION }}_linux_amd64.tar.gz packages/phishingclub_${{ steps.get_version.outputs.VERSION }}_linux_amd64.tar.gz
packages/phishingclub_${{ steps.get_version.outputs.VERSION }}_linux_arm64.tar.gz packages/phishingclub_${{ steps.get_version.outputs.VERSION }}_linux_arm64.tar.gz
packages/phishingclub_${{ steps.get_version.outputs.VERSION }}.tar.gz
retention-days: 2 retention-days: 2