Add CI/CD workflow: publish Docker images to GHCR on push to main-bc#2
Merged
Merged
Conversation
Builds apps/OpenSign and apps/OpenSignServer via their existing
Dockerhubfile (unchanged) using Buildx with GitHub Actions cache, and
pushes ghcr.io/bycoderstec/{opensign,opensignserver} tagged main-bc,
latest, and the commit SHA. Lets DigitalOcean App Platform switch from
Buildpacks to consuming prebuilt container images, matching the
official OpenSign Docker-based deployment process.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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
.github/workflows/docker-publish-main-bc.yml: builds the frontend (apps/OpenSign/Dockerhubfile) and backend (apps/OpenSignServer/Dockerhubfile) images with Docker Buildx (multi-arch, GHA cache) on every push tomain-bc, and pushes them toghcr.io/bycoderstec/opensignandghcr.io/bycoderstec/opensignservertaggedmain-bc,latest, and the commit SHA.Dockerhubfile, or existing workflow (Docker.yml, which syncsmain/stagingto the official Docker Hub images) was touched — this is a new, isolated workflow scoped only tomain-bc.Follow-up (outside this PR, on GitHub/DigitalOcean side)
GITHUB_TOKENcan push to GHCR.opensign/opensignserverpackages public (or configure a GHCR credential in DO) and point the DO App Platform components at the GHCR image withdeploy_on_pushenabled.Test plan
main-bcand both images appear athttps://github.com/orgs/bycoderstec/packagesmain-bc,latest, and the short commit SHA are all present on both images🤖 Generated with Claude Code