Add docker support and github CR package workflow#167
Merged
yimsk merged 2 commits intoclawscli:mainfrom Feb 23, 2026
Merged
Conversation
Contributor
|
Thanks for this, looks great! Since claws is pure Go (CGO_ENABLED=0), I think we can avoid QEMU entirely by using Go's native cross-compilation. Something like this: FROM --platform=$BUILDPLATFORM golang:1.25-alpine AS build
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
ARG VERSION=dev
ARG TARGETOS TARGETARCH
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
-ldflags="-s -w -X main.version=${VERSION}" \
-o /claws ./cmd/clawsThis way we wouldn't need to rely on QEMU at all. |
Contributor
Author
|
Yeah that sounds sane, lemme rework it |
Contributor
Author
Contributor
|
This is awesome, thank you! 🎉 |
Merged
tmeijn
pushed a commit
to tmeijn/dotfiles
that referenced
this pull request
Feb 24, 2026
This MR contains the following updates: | Package | Update | Change | |---|---|---| | [github:clawscli/claws](https://github.com/clawscli/claws) | patch | `0.15.0` → `0.15.1` | MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot). **Proposed changes to behavior should be submitted there as MRs.** --- ### Release Notes <details> <summary>clawscli/claws (github:clawscli/claws)</summary> ### [`v0.15.1`](https://github.com/clawscli/claws/releases/tag/v0.15.1) [Compare Source](clawscli/claws@v0.15.0...v0.15.1) #### Changelog - [`4fe75b6`](clawscli/claws@4fe75b6) Add docker support and github CR package workflow - [`92189e5`](clawscli/claws@92189e5) Cross-compile for multiple archs instead of relying on QEMU - [`63731ed`](clawscli/claws@63731ed) Merge pull request [#​165](clawscli/claws#165) from clawscli/develop - [`d806a8e`](clawscli/claws@d806a8e) Merge pull request [#​167](clawscli/claws#167) from stefan-matic/main - [`f508583`](clawscli/claws@f508583) Merge pull request [#​168](clawscli/claws#168) from clawscli/develop - [`7fbf05d`](clawscli/claws@7fbf05d) Merge pull request [#​169](clawscli/claws#169) from dpalvolgyi-pw/feature/ecs-last-deployment - [`87d9644`](clawscli/claws@87d9644) Merge pull request [#​170](clawscli/claws#170) from clawscli/develop - [`6d22155`](clawscli/claws@6d22155) feat(ecs): add last deployment column </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4zMS4xIiwidXBkYXRlZEluVmVyIjoiNDMuMzEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90IiwiYXV0b21hdGlvbjpib3QtYXV0aG9yZWQiLCJkZXBlbmRlbmN5LXR5cGU6OnBhdGNoIl19-->
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.


Summary:
Usage:
Setup:
No manual configuration is required — the workflow uses the built-in GITHUB_TOKEN which has packages: write permission. After the first image is published, you may want to change the package visibility from private to public in the
https://github.com/orgs/clawscli/packages
Note on multi-arch builds:
The workflow currently builds for both linux/amd64 and linux/arm64. On free-tier GitHub Actions runners, the arm64 build runs under QEMU emulation which can take 30-45+ minutes. If build times are a concern, you could:
a. Remove linux/arm64 from the platforms list to build amd64 only
b. Use native arm64 runners (e.g. ubuntu-24.04-arm, available on paid plans or for public repos)
c. Use cross-compilation instead of QEMU — Go natively cross-compiles without emulation. This requires restructuring the Dockerfile to build outside Docker and copy the binary in, which loses the multi-stage simplicity.