feat: build container image and upload into registry#3
Conversation
WalkthroughAdds a new GitHub Actions workflow that builds and publishes a Docker image to GitHub Container Registry for pushes to main, tags matching v*, and pull requests to main. It logs in to ghcr.io, generates tags/labels via metadata, and builds/pushes using docker/build-push-action. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Developer
participant GH as GitHub Actions
participant CO as actions/checkout@v5
participant DL as docker/login-action@v3
participant DM as docker/metadata-action@v5
participant BP as docker/build-push-action@v6
participant REG as ghcr.io
Dev->>GH: Push to main / Tag v* / PR to main
GH->>CO: Checkout repository
CO-->>GH: Source code
GH->>DL: Login to ghcr.io (GITHUB_TOKEN)
DL-->>GH: Auth session
GH->>DM: Generate tags & labels (branch/PR/semver/SHA)
DM-->>GH: tags[], labels{}
GH->>BP: Build & push image (tags, labels)
BP->>REG: Push image layers & manifests
REG-->>BP: Acknowledge publish
BP-->>GH: Build & push complete
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Free 📒 Files selected for processing (1)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
|
Railway 세팅하려고 이미지 업로드 하는거라 일단 병합해볼게용 |
Summary by CodeRabbit
New Features
Chores