Skip to content

Fix agent build pipeline and packaging for all platforms#4

Merged
jhd3197 merged 12 commits intomainfrom
dev
Jan 24, 2026
Merged

Fix agent build pipeline and packaging for all platforms#4
jhd3197 merged 12 commits intomainfrom
dev

Conversation

@jhd3197
Copy link
Owner

@jhd3197 jhd3197 commented Jan 24, 2026

Summary

Fixes the agent release workflow to successfully build and publish packages for all platforms
(Linux, Windows, Docker).

Build Fixes

  • Go: Add missing encoding/base64 import in agent code
  • RPM: Fix cross-architecture builds (arm64 on x86_64 runner) using --target flag
  • RPM: Fix output directory permission error by using absolute paths
  • MSI: Simplify WiX v4 installer - use version variable, remove UI extension dependency, fix
    duplicate file reference

Repository Cleanup

  • Remove accidentally committed serverkit-agent.exe binary
  • Add .gitignore for agent build artifacts

Docker

  • Update Docker image repository to jhd3197/serverkit-agent
  • Update docker-compose.yml with correct image reference

jhd3197 and others added 12 commits January 24, 2026 11:34
Add encoding/base64 import that was missing, causing build failures.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- MSI: Fix WiX v4 syntax - use Condition attribute instead of inner text
- RPM: Disable build-id links for Go binaries to suppress warning

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Use version variable instead of file version binding (Go binaries lack version resources)
- Remove WixUI extension dependency for simpler build
- Fix duplicate file reference issue
- Consolidate service install into main executable component

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove accidentally committed serverkit-agent.exe
- Add .gitignore to prevent committing binaries

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Convert paths to absolute before changing directories
- Use --target flag for cross-architecture builds (arm64 on x86_64)
- Remove hardcoded BuildArch from spec (let --target handle it)
- Fix permission denied error when creating output directory

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Changed the agent service image from 'serverkit/agent:latest' to 'jhd3197/serverkit-agent:latest' to use the updated repository.
Change Docker Hub repository from serverkit/agent to jhd3197/serverkit-agent
to match the actual Docker Hub account.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings January 24, 2026 18:15
@jhd3197 jhd3197 merged commit ee97e38 into main Jan 24, 2026
15 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the agent release/build pipeline so Linux (deb/rpm), Windows (MSI), and Docker images build and publish reliably, while also cleaning up accidentally committed build artifacts.

Changes:

  • Fix RPM packaging to support cross-arch builds and avoid output path/permission issues.
  • Simplify the WiX v4 MSI definition and switch it to an explicit Version variable.
  • Update Docker image references and clean up repository artifacts (.gitignore + remove committed .exe).

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
agent/packaging/rpm/build.sh Makes RPM builds more robust (absolute paths, --target, _build_id_links none, output dir handling).
agent/packaging/msi/Product.wxs Simplifies MSI definition; uses $(var.Version) and removes UI/custom-action complexity and duplicate file reference.
agent/internal/agent/agent.go Adds missing encoding/base64 import required by existing base64 encode/decode usage.
agent/docker-compose.yml Updates compose to use the new Docker image repository.
agent/.gitignore Prevents committing agent build artifacts and common binary outputs.
VERSION Bumps version number.
.github/workflows/agent-release.yml Updates Docker tags/docs to jhd3197/serverkit-agent and aligns release instructions accordingly.
agent/serverkit-agent.exe Removes accidentally committed binary from the repo.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants