diff options
| author | Mister_X <MisterX2000@users.noreply.github.com> | 2025-04-02 01:50:53 +0200 |
|---|---|---|
| committer | Mister_X <MisterX2000@users.noreply.github.com> | 2025-04-02 01:50:53 +0200 |
| commit | a44152c4c5cb8670ddc053f8d29f506bc5b3ac46 (patch) | |
| tree | 4ef1cdb3e5b7d6a4cf749276575bd0f9e3210573 /.github/workflows | |
| parent | 5f3d4d7b7e0f5a6d93f4d711969719699a3f4721 (diff) | |
fix action
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build-docker-image.yaml | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/.github/workflows/build-docker-image.yaml b/.github/workflows/build-docker-image.yaml index 8f7c59df6..c6ebf5f63 100644 --- a/.github/workflows/build-docker-image.yaml +++ b/.github/workflows/build-docker-image.yaml @@ -19,20 +19,12 @@ jobs: strategy: fail-fast: false matrix: - tag: - - '' - - alpine - # include: - # - tag: "" # Default Dockerfile - # platforms: linux/amd64 - # - tag: aarch64 - # platforms: linux/arm64 - # - tag: alpine - # platforms: linux/amd64,linux/arm64 - # - tag: archlinux - # platforms: linux/amd64,linux/arm64 - # - tag: armv7 - # platforms: linux/arm/v7 + include: + - tag: "" # Default Dockerfile + platforms: linux/amd64,linux/arm64 + - tag: alpine + platforms: linux/amd64 + runs-on: ubuntu-latest steps: - name: Docker meta @@ -46,7 +38,7 @@ jobs: flavor: | latest=auto prefix= - suffix=${{ matrix.tag != '' && format('-{0}', matrix.tag)}} + suffix=${{ matrix.tag == '' && '' || format('-{0}', matrix.tag)}} tags: | type=schedule type=ref,event=branch @@ -74,8 +66,8 @@ jobs: uses: docker/build-push-action@v6 with: # Use "Dockerfile" if matrix.tag is empty, otherwise use "Dockerfile.{tag}" - file: docker/Dockerfile${{ matrix.tag != '' && format('.{0}', matrix.tag) }} - platforms: linux/amd64,linux/arm64 + file: docker/Dockerfile${{ matrix.tag == '' && '' || format('.{0}', matrix.tag) }} + platforms: ${{ matrix.platforms }} push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} |
