Skip to content

Commit

Permalink
Build the platform specific images in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
ukanga committed May 8, 2024
1 parent fb2dfcc commit 10c630c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ecr-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,18 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
paltform:
- linux/amd64
- linux/arm64
steps:
- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4

Expand Down Expand Up @@ -64,7 +75,7 @@ jobs:
with:
context: .
file: ./docker/onadata-uwsgi/Dockerfile.ubuntu
platforms: linux/amd64,linux/arm64
platforms: ${{ matrix.platform }}
cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/onaio/onadata:${{ env.version }}
cache-to: type=inline
ssh: |
Expand All @@ -82,7 +93,7 @@ jobs:
with:
context: .
file: ./docker/onadata-uwsgi/Dockerfile.alpine
platforms: linux/amd64,linux/arm64
platforms: ${{ matrix.platform }}
cache-from: type=registry,ref=${{ steps.login-ecr.outputs.registry }}/onaio/onadata:${{ env.version }}
cache-to: type=inline
ssh: |
Expand Down

0 comments on commit 10c630c

Please sign in to comment.