Skip to content

Commit

Permalink
chore: add ARM Image build support
Browse files Browse the repository at this point in the history
  • Loading branch information
VinneyJ committed Oct 8, 2024
1 parent 11e285d commit 2b2f7d4
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/climatemappedafrica-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Climate Mapped Africa | Deploy | DEV

on:
push:
branches: [main]
branches:
- main
- chore/build-arm-image
paths:
- "apps/climatemappedafrica/**"
- "Dockerfile"
Expand Down Expand Up @@ -33,6 +35,10 @@ jobs:
with:
fetch-depth: 0

# Add support for more platforms with QEMU (optional)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -58,6 +64,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: .
platforms: linux/amd64,linux/arm64
target: climatemappedafrica-runner
push: true
tags: "${{ env.IMAGE_NAME }}:${{ github.sha }}"
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/codeforafrica-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Code for Africa | Deploy | DEV

on:
push:
branches: [main]
branches:
- main
- chore/build-arm-image
paths:
- "apps/codeforafrica/**"
- "Dockerfile"
Expand Down Expand Up @@ -34,6 +36,10 @@ jobs:
with:
fetch-depth: 0

# Add support for more platforms with QEMU (optional)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -66,6 +72,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: .
platforms: linux/amd64,linux/arm64
push: true
secrets: |
"sentry_auth_token=${{ secrets.SENTRY_AUTH_TOKEN }}"
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/pesayetu-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Pesayetu | Deploy | DEV

on:
push:
branches: [main]
branches:
- main
- chore/build-arm-image
paths:
- "apps/pesayetu/**"
- "Dockerfile.pesayetu"
Expand Down Expand Up @@ -34,6 +36,10 @@ jobs:
with:
fetch-depth: 0

# Add support for more platforms with QEMU (optional)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -68,6 +74,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: "${{ env.IMAGE_NAME }}:${{ github.sha }}"
target: pesayetu-runner
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/roboshield-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: RoboShield | Deploy | DEV

on:
push:
branches: [main]
branches:
- main
- chore/build-arm-image
paths:
- "apps/roboshield/**"
- "Dockerfile"
Expand Down Expand Up @@ -34,6 +36,10 @@ jobs:
with:
fetch-depth: 0

# Add support for more platforms with QEMU (optional)
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -65,6 +71,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: .
platforms: linux/amd64,linux/arm64
push: true
secrets: |
"sentry_auth_token=${{ secrets.SENTRY_AUTH_TOKEN }}"
Expand Down

0 comments on commit 2b2f7d4

Please sign in to comment.