Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 45
Update GitHub workflows to support multi-platform builds #341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
eb21cce33721ed763ed66File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -30,6 +30,11 @@ jobs: | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up QEMU | ||
| uses: docker/setup-qemu-action@v3 | ||
| with: | ||
| platforms: arm64 | ||
| - uses: docker/setup-buildx-action@v3 | ||
| - name: Log in to GHCR | ||
| @@ -53,5 +58,8 @@ jobs: | ||
| with: | ||
| context: ./dashboard | ||
| push: true | ||
| platforms: linux/amd64,linux/arm64 | ||
coderabbitai[bot] marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: ${{ steps.meta.outputs.labels }} | ||
| provenance: true | ||
| sbom: true | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -30,6 +30,11 @@ jobs: | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up QEMU | ||
| uses: docker/setup-qemu-action@v3 | ||
| with: | ||
| platforms: arm64 | ||
| - uses: docker/setup-buildx-action@v3 | ||
| - name: Log in to GHCR | ||
| @@ -54,6 +59,7 @@ jobs: | ||
| with: | ||
| context: ./landing-page | ||
| push: true | ||
| platforms: linux/amd64,linux/arm64 | ||
coderabbitai[bot] marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: ${{ steps.meta.outputs.labels }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -87,6 +87,11 @@ jobs: | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up QEMU | ||
| uses: docker/setup-qemu-action@v3 | ||
| with: | ||
| platforms: arm64 | ||
| - uses: docker/setup-buildx-action@v3 | ||
| - name: Log in to GHCR | ||
| @@ -110,5 +115,8 @@ jobs: | ||
| with: | ||
| context: ./state-manager | ||
| push: true | ||
| platforms: linux/amd64,linux/arm64 | ||
coderabbitai[bot] marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: ${{ steps.meta.outputs.labels }} | ||
| provenance: true | ||
| sbom: true | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -25,6 +25,11 @@ jobs: | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up QEMU | ||
| uses: docker/setup-qemu-action@v3 | ||
| with: | ||
| platforms: arm64 | ||
| - uses: docker/setup-buildx-action@v3 | ||
| - name: Log in to GHCR | ||
| @@ -51,5 +56,8 @@ jobs: | ||
| with: | ||
| context: ./dashboard | ||
| push: true | ||
| platforms: linux/amd64,linux/arm64 | ||
coderabbitai[bot] marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: ${{ steps.meta.outputs.labels }} | ||
| provenance: true | ||
| sbom: true | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Set up QEMU to support the new arm64 target.
docker/setup-qemu-action@v3 is needed for cross-arch builds on GitHub-hosted runners.
Insert before buildx:
Also verify the Dockerfile bases are multi-arch (e.g., node, python, alpine) and respect TARGETARCH.
🏁 Script executed:
Length of output: 561
Set up QEMU for ARM64 before building
Insert before the build-and-push step in .github/workflows/publish-api-server.yml:
This action must precede any buildx or build-push steps to install QEMU emulators for cross-architecture builds (github.com)
Validate your Dockerfile base images are multi-arch and use TARGETARCH for architecture-specific logic.
🤖 Prompt for AI Agents