Skip to content

ci(docker): publish latest image to ghcr#12

Open
imbytecat wants to merge 1 commit intoAmazingAng:mainfrom
imbytecat:main
Open

ci(docker): publish latest image to ghcr#12
imbytecat wants to merge 1 commit intoAmazingAng:mainfrom
imbytecat:main

Conversation

@imbytecat
Copy link
Copy Markdown

Summary

  • add a GitHub Actions workflow to build Docker images on pull requests and publish latest to GHCR from main
  • document the official prebuilt image in README.md and README_CN.md
  • reorganize the Docker section in both READMEs to distinguish quick start from building from source

Details

This PR adds an automated Docker publishing workflow for auth2api.
Behavior:

  • pull_request: build-only verification
  • push to main: build and publish ghcr.io/AmazingAng/auth2api:latest
  • workflow_dispatch: manual rerun support
    The README and Chinese README are updated to:
  • point users to the official GHCR image
  • clarify that PRs do not publish packages
  • present Docker usage in a clearer order:
    • quick start with the prebuilt image
    • build from source

Why

The project already provides a Dockerfile, but publishing a prebuilt image lowers the barrier for users who just want to run auth2api quickly without building locally.
Using GHCR keeps the release path close to the repository and avoids introducing an external registry dependency.

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