Add multi-platform Docker builds for Linux AMD64/ARM64#1
Closed
Add multi-platform Docker builds for Linux AMD64/ARM64#1
Conversation
Co-authored-by: tekig <19306721+tekig@users.noreply.github.com>
Co-authored-by: tekig <19306721+tekig@users.noreply.github.com>
Co-authored-by: tekig <19306721+tekig@users.noreply.github.com>
Co-authored-by: tekig <19306721+tekig@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Docker image build for Windows and Linux platforms
Add multi-platform Docker builds for Linux AMD64/ARM64 and Windows binaries
Oct 27, 2025
Owner
|
Limit Docker image builds to Linux platforms only. |
tekig
requested changes
Oct 27, 2025
.github/workflows/main.yml
Outdated
Comment on lines
+86
to
+106
| build-windows: | ||
| runs-on: windows-latest | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Go | ||
| uses: actions/setup-go@v4 | ||
| with: | ||
| go-version: '1.23' | ||
|
|
||
| - name: Build Windows binaries | ||
| run: | | ||
| go build -o bin/hammer.exe ./cmd/hammer | ||
| go build -o bin/recorder.exe ./cmd/recorder | ||
| go build -o bin/searcher.exe ./cmd/searcher | ||
|
|
||
| - name: Upload Windows binaries | ||
| uses: actions/upload-artifact@v4 |
Owner
There was a problem hiding this comment.
Limit Docker image builds to Linux platforms only.
Owner
There was a problem hiding this comment.
@copilot Limit Docker image builds to Linux platforms only.
Contributor
Author
There was a problem hiding this comment.
Done. Removed the Windows binary build job. Docker image builds are now limited to Linux platforms only (linux/amd64 and linux/arm64). Commit: a78945e
Co-authored-by: tekig <19306721+tekig@users.noreply.github.com>
Contributor
Author
Done. Removed the Windows binary build job. Docker image builds are now limited to Linux platforms only (linux/amd64 and linux/arm64). Commit: a78945e |
Copilot
AI
changed the title
Add multi-platform Docker builds for Linux AMD64/ARM64 and Windows binaries
Add multi-platform Docker builds for Linux AMD64/ARM64
Oct 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enables Docker image builds for multiple architectures to support deployment across different hardware platforms.
Changes
Dockerfile: Multi-stage build with platform-aware cross-compilation
TARGETOSandTARGETARCHbuild args for target platform selectionCGO_ENABLED=0for portable binariesGitHub Actions: Extended workflow for multi-platform support
linux/amd64,linux/arm64via BuildXDocumentation: Added platform support section for Linux architectures
Usage
Docker automatically selects the appropriate image for the host platform:
docker pull ghcr.io/tekig/clerk:main # Works on AMD64 or ARM64 hostsOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.