Skip to content

[Feature] Publish frontend Docker images to GHCR #239

Description

@raphaelbahat

场景描述

Currently, users who want to run GithubStarsManager need to clone the entire repository and build the frontend Docker image locally from the Dockerfile. This creates several friction points:

  1. Users must have Git installed and clone the full repository
  2. Build time overhead for every new deployment
  3. Inconsistent builds across different environments
  4. Difficult to track which frontend version is running without referencing git tags

By publishing frontend images to GHCR, users can simply reference the image in their docker-compose configuration, similar to how the backend is already published.

建议解决方案

Publish frontend Docker images to GHCR (GitHub Container Registry) and update the docker-compose.yml configuration:

  1. Set up GitHub Actions workflow to build and push frontend images to ghcr.io/amintacccp/github-stars-manager-frontend on every release or on push to main
  2. Tag images with version numbers and latest tag
  3. Update docker-compose.yml to reference the published image instead of building locally:
    frontend:
      image: ghcr.io/amintacccp/github-stars-manager-frontend:${FRONTEND_IMAGE_TAG:-latest}
      ports:
        - "8080:80"
      depends_on:
        - backend
      restart: unless-stopped
  4. Document the new deployment approach for users

附加说明

Related Work:

  • Backend images are already published to GHCR at ghcr.io/amintacccp/github-stars-manager-server
  • The frontend Dockerfile is at the repository root and builds successfully

Benefits:

  • Simplified deployment for users - no need to clone repository
  • Faster deployments with pre-built images
  • Better version tracking and reproducibility
  • Aligns with container best practices
  • Consistent with existing backend deployment model

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions