Skip to content

Commit

Permalink
chore: add Multiplatform support
Browse files Browse the repository at this point in the history
  • Loading branch information
VinneyJ committed Oct 8, 2024
1 parent a2df19a commit 97090c7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: main
on:
push:
branches: [main]
branches:
- main
- chore/build-arm-image
env:
DOKKU_REMOTE_BRANCH: "master"
DOKKU_REMOTE_URL: "ssh://[email protected]/sensors-africa-ui"
Expand All @@ -22,6 +24,10 @@ jobs:
with:
fetch-depth: 0

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

# Set up Node since it's required by version-check
# https://github.com/EndBug/version-check#github-workflow
- name: Setup Node.js
Expand Down Expand Up @@ -67,6 +73,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 }}:${{ steps.version-check.outputs.version }}"

Expand Down

0 comments on commit 97090c7

Please sign in to comment.