ci: docker publish workflow for indexer-api + indexer-worker#52
Merged
Conversation
Builds + pushes both images to Docker Hub on every git tag (v*). Operators that want to self-host the Sentrix indexer get a clean path: docker pull sentriscloud/indexer-api:0.4.0 docker pull sentriscloud/indexer-worker:0.4.0 vs the current path of cloning the repo + pnpm install + docker compose build. :latest tag tracks the highest non-prerelease semver. Matrix builds api + worker in parallel using docker buildx with GHA cache (per-image scope so api builds don't invalidate worker cache). linux/amd64 only for now — arm64 emulation runs ~5x slower on x86 runners; opt in via a follow-up workflow when there's actual demand. Manual workflow_dispatch path for ad-hoc rebuilds (eg base-image security bump that doesn't ship a code change). Requires DOCKERHUB_USERNAME + DOCKERHUB_TOKEN repo secrets — add via Settings → Secrets and variables → Actions before tagging the first release. Image labels follow OCI spec — source / revision / version / license so registries that index labels (Docker Hub UI, GHCR, Artifact Hub) display the right metadata.
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
Adds a GH Action that builds + pushes both indexer images to Docker Hub on every git tag of the form `v*`. Operators that want to self-host the Sentrix indexer get a clean path:
```
docker pull sentriscloud/indexer-api:0.4.0
docker pull sentriscloud/indexer-worker:0.4.0
```
vs the current path of cloning the repo + `pnpm install` + `docker compose build`. `:latest` tag tracks the highest non-prerelease semver (no `-` suffix in the version).
Matrix
Builds `indexer-api` (`apps/api/Dockerfile`) and `indexer-worker` (`apps/indexer/Dockerfile`) in parallel using docker buildx with GHA cache scoped per-image (api builds don't invalidate worker cache).
linux/amd64 only for now — arm64 emulation runs ~5x slower on x86 runners. Opt-in via follow-up workflow when there's actual demand.
Manual rebuild
`workflow_dispatch` path with a `tag` input for ad-hoc rebuilds (eg base-image security bump that doesn't ship a code change).
Operator setup before first tag
OCI labels
Each image carries the standard OCI labels (source / revision / version / license) so registries that index them (Docker Hub UI, GHCR, Artifact Hub) display correct metadata.
Out of scope (follow-up)