Fix: call update-binfmts ony if it exists.

This commit is contained in:
Bojan Čekrlić 2025-01-26 16:48:59 +01:00
parent 0b2e8ee5a1
commit b957465e02
3 changed files with 3 additions and 3 deletions

View file

@ -81,7 +81,7 @@ jobs:
- name: Fix issue with building Alpine # See https://gitlab.alpinelinux.org/alpine/aports/-/issues/12406
run: |
update-binfmts --enable
if command -v update-binfmts; then update-binfmts --enable; fi
- name: Build and push Alpine
uses: docker/build-push-action@v6

View file

@ -62,7 +62,7 @@ jobs:
- name: Fix issue with building Alpine # See https://gitlab.alpinelinux.org/alpine/aports/-/issues/12406
run: |
update-binfmts --enable
if command -v update-binfmts; then update-binfmts --enable; fi
- name: Build Alpine
uses: docker/build-push-action@v6

View file

@ -86,7 +86,7 @@ jobs:
- name: Fix issue with building Alpine # See https://gitlab.alpinelinux.org/alpine/aports/-/issues/12406
run: |
update-binfmts --enable
if command -v update-binfmts; then update-binfmts --enable; fi
- name: Build and push Alpine
uses: docker/build-push-action@v6