Skip to content

Add GHCR CI and fix go-bindata build path#2

Merged
33k-org merged 2 commits into
masterfrom
ci-and-build-fix
Jun 9, 2026
Merged

Add GHCR CI and fix go-bindata build path#2
33k-org merged 2 commits into
masterfrom
ci-and-build-fix

Conversation

@33k-org

@33k-org 33k-org commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Why

When PR #1 was merged, only the first commit (the user-management API) landed on master. The other two commits from that branch were dropped, leaving master in a state where:

  • .github/workflows/ has no build workflow — the CI to build/push the image is missing.
  • Makefile still installs go-bindata from github.com/kevinburke/go-bindata/go-bindata, a module path that no longer resolves (go get fails with "does not contain package"). This breaks make build and therefore the Docker image build from source — and would also break the CI below.

This PR re-applies those two changes.

Changes

  • Fix go-bindata install path — switch to go install github.com/kevinburke/go-bindata/v4/go-bindata@v4.0.2, which resolves and pins a known-good version. Verified with a clean docker build.
  • Add CI (.github/workflows/docker-build.yml) — builds the image with Buildx + QEMU (linux/amd64, linux/arm64) and pushes to ghcr.io/<owner>/subspace:
    • push to master → tags master + latest
    • v* tags → semver tags
    • pull requests → build-only (no push), to verify the image compiles
    • GitHub Actions layer caching

Notes

  • The Makefile fix must merge for the CI to pass (and for anyone to build from source).
  • GHCR packages default to private; after the first push, make the package public or configure a pull secret on the server.

33k-org and others added 2 commits June 9, 2026 21:15
The build installed go-bindata from github.com/kevinburke/go-bindata/go-bindata,
a module path that no longer resolves (go get fails with "does not contain
package"). This broke `make build` and therefore the Docker image build from
source.

Switch to `go install github.com/kevinburke/go-bindata/v4/go-bindata@v4.0.2`,
which resolves and pins a known-good version. Verified by a clean
`docker build` of the image.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
GitHub Actions workflow that builds the Docker image and pushes it to
ghcr.io/<owner>/subspace:
- on push to master -> tags the image `master` and `latest`
- on version tags (v*) -> semver tags
- on pull requests -> builds only (no push) to verify the image compiles

Multi-arch (linux/amd64, linux/arm64) via Buildx + QEMU, with GitHub
Actions layer caching.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@33k-org 33k-org merged commit eaf9a8e into master Jun 9, 2026
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.

1 participant