diff --git a/.github/workflows/docker-release.yaml b/.github/workflows/docker-release.yaml index a3c3024..309401f 100644 --- a/.github/workflows/docker-release.yaml +++ b/.github/workflows/docker-release.yaml @@ -22,6 +22,17 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + with: + platforms: 'arm64,arm' + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v3 + with: + platforms: linux/arm64,linux/amd64,linux/arm/v7 + - name: Log in to the Container registry uses: docker/login-action@v3 with: @@ -34,6 +45,11 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=ref,event=tag + type=semver,pattern={{major}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{version}} - name: Build and push Docker image id: push @@ -41,6 +57,7 @@ jobs: with: context: . push: true + platforms: ${{ steps.buildx.outputs.platforms }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}