feat: update workflow to allow arm builds

This commit is contained in:
2025-09-28 11:40:34 +02:00
parent f2ac8ba11d
commit 9f38493b2d

View File

@@ -27,7 +27,7 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4.2.2
uses: actions/checkout@vmaster
with:
fetch-depth: 0 # Fetch full history
fetch-tags: true # Fetch all tags (refs/tags)
@@ -78,13 +78,13 @@ jobs:
echo "tag=$prev" >> "$GITHUB_OUTPUT"
- name: Build and store Docker image
- name: Build and store Docker image for multiple architectures
if: ${{ github.event.inputs.docker_release == 'true' }}
run: |
REPO_NAME=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
docker buildx build \
--platform linux/amd64 \
--platform linux/amd64,linux/arm64 \
--tag ${{ secrets.REGISTRY }}/${REPO_NAME}:latest \
--tag ${{ secrets.REGISTRY }}/${REPO_NAME}:${{ env.VERSION }} \
--push .