Skip to content

Commit

Permalink
fix platform
Browse files Browse the repository at this point in the history
  • Loading branch information
falmar committed Apr 29, 2023
1 parent a845041 commit 5f4c960
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,21 @@ jobs:
push_image:
strategy:
matrix:
platform: [ linux/amd64, linux/arm64 ]
platform: [linux/amd64,linux/arm64]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: jungwinter/split@v2
id: split
with:
msg: ${{ matrix.platform }}
separator: /

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: ${{ env.PLATFORMS }}
platforms: ${{ matrix.platform }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -51,5 +57,5 @@ jobs:
push: true
file: ./build/lambda.Dockerfile
tags: ${{ env.DOCKER_USERNAME }}/${{ env.DOCKER_IMAGE }}:${{ env.DOCKER_IMAGE_TAG }}
cache-from: type=gha,scope=$GITHUB_REF_NAME-${{ matrix.platform }}
cache-to: type=gha,mode=max,scope=$GITHUB_REF_NAME-${{ matrix.platform }}
cache-from: type=gha,scope=$GITHUB_REF_NAME-${{ steps.split.outputs._1 }}
cache-to: type=gha,mode=max,scope=$GITHUB_REF_NAME-${{ steps.split.outputs._1 }}

0 comments on commit 5f4c960

Please sign in to comment.