Skip to content

Commit

Permalink
Try to fix multi-platform push
Browse files Browse the repository at this point in the history
  • Loading branch information
urschrei committed Apr 3, 2024
1 parent 4632b31 commit 661c8de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/imagebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ jobs:
uses: docker/build-push-action@v5
with:
file: ./dockerfiles/${{ env.BASE_IMAGE_NAME }}
push: false
load: true
platform: linux/amd64
tags: ghcr.io/${{ github.repository_owner }}/${{ env.BASE_IMAGE_NAME }}:proj-${{ env.LIBPROJ_VERSION }}-rust-${{ matrix.rust_version }}
build-args: |
RUST_VERSION=${{ matrix.rust_version }}
Expand All @@ -64,6 +66,8 @@ jobs:
with:
file: ./dockerfiles/${{ env.BASE_IMAGE_NAME }}
push: true
load: false
platform: linux/amd64,linux/arm64
tags: ghcr.io/${{ github.repository_owner }}/${{ env.BASE_IMAGE_NAME }}:proj-${{ env.LIBPROJ_VERSION }}-rust-${{ matrix.rust_version }}
outputs: type=docker,dest=/tmp/${{ env.BASE_IMAGE_NAME }}-proj-${{ env.LIBPROJ_VERSION }}-rust-${{ matrix.rust_version }}.tar
build-args: |
Expand Down Expand Up @@ -110,7 +114,9 @@ jobs:
uses: docker/build-push-action@v5
with:
file: ./dockerfiles/${{ matrix.docker_image_name }}
push: false
load: true
platform: linux/amd64
tags: ghcr.io/${{ github.repository_owner }}/${{ matrix.docker_image_name }}:proj-${{ env.LIBPROJ_VERSION }}-rust-${{ matrix.rust_version }}
build-args: |
RUST_VERSION=${{ matrix.rust_version }}
Expand All @@ -125,6 +131,8 @@ jobs:
with:
file: ./dockerfiles/${{ matrix.docker_image_name }}
push: true
load: false
platform: linux/amd64,linux/arm64
tags: ghcr.io/${{ github.repository_owner }}/${{ matrix.docker_image_name }}:proj-${{ env.LIBPROJ_VERSION }}-rust-${{ matrix.rust_version }}
outputs: type=docker,dest=/tmp/${{ matrix.docker_image_name }}-proj-${{ env.LIBPROJ_VERSION }}-rust-${{ matrix.rust_version }}.tar
build-args: |
Expand Down

0 comments on commit 661c8de

Please sign in to comment.