Skip to content

Commit

Permalink
enable multiplatform builds (#363)
Browse files Browse the repository at this point in the history
* enable multiplatform builds

* Update docker-image.yml
  • Loading branch information
nimdanitro authored May 4, 2024
1 parent 57913d5 commit a573e17
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,18 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
name: "Test and Build"
steps:
- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
Expand All @@ -24,6 +34,8 @@ jobs:
node-version-file: ".nvmrc"
cache: yarn
cache-dependency-path: "ui/yarn.lock"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
Expand Down Expand Up @@ -70,6 +82,7 @@ jobs:
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
platforms: ${{ matrix.platform }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
Expand Down Expand Up @@ -97,6 +110,7 @@ jobs:
with:
context: .
file: Dockerfile.hasura
platforms: ${{ matrix.platform }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta-hasura.outputs.tags }}
labels: ${{ steps.meta-hasura.outputs.labels }}

0 comments on commit a573e17

Please sign in to comment.