Skip to content

Commit

Permalink
Build and test linux/arm64 image and update deployment to publish amd…
Browse files Browse the repository at this point in the history
…64 and arm64 images
  • Loading branch information
arunvelsriram committed Aug 17, 2023
1 parent e1fadd4 commit 44e05c5
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,24 @@ jobs:
tags: utils-test:linux-amd64
platforms: linux/amd64

- name: Run test for linux/amd64 image
- name: Run tests on linux/amd64 image
run: UTILS_TEST_IMAGE='utils-test:linux-amd64' bats test/test.bats

- name: Build and push production Docker image
- name: Build test linux/arm64 Docker image
uses: docker/build-push-action@v4
with:
push: false
load: true
tags: utils-test:linux-arm64
platforms: linux/arm64

- name: Run tests on linux/arm64 image
run: UTILS_TEST_IMAGE='utils-test:linux-arm64' bats test/test.bats

- name: Build and push production Docker images
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/build-push-action@v2
with:
push: true
platforms: linux/amd64,linux/arm64
tags: arunvelsriram/utils:latest

0 comments on commit 44e05c5

Please sign in to comment.