feat: add Docker Hub publishing to constructive image CI#1326
Merged
Conversation
Add a step to copy multi-arch manifests from GHCR to Docker Hub (constructiveio/constructive) after the GHCR publish completes. This enables public access to the constructive image without needing GHCR auth, which simplifies local K8s dev setup in constructive-db (no need to build from source). Requires DOCKERHUB_USERNAME and DOCKERHUB_TOKEN repository secrets.
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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 Docker Hub publishing alongside the existing GHCR publish in the
docker-constructiveworkflow. After GHCR multi-arch manifests are assembled, a new step copies them todocker.io/constructiveio/constructive(only onmainbranch pushes).This enables the
constructive-dbK8s local dev setup to pull a pre-built GraphQL server image from Docker Hub without needing GHCR auth or rebuilding the entire constructive monorepo from source.Changes to
publish-constructive-manifestjob:DOCKERHUB_USERNAME+DOCKERHUB_TOKENrepo secrets)meta-dockerhubmetadata extraction for Docker Hub tagsCopy multi-arch manifests to Docker Hubstep usingdocker buildx imagetools createto mirror from GHCRNo changes to the build job — images are still built and pushed by digest to GHCR only. The Docker Hub copy happens post-assembly via
imagetools create, avoiding redundant builds.Link to Devin session: https://app.devin.ai/sessions/7308698edc054a55b1b7e6414263f077
Requested by: @pyramation