GNOME-Nepal / site-server

Backend server for GNOME Nepal
MIT License
6 stars 7 forks source link

Add nightly multi-platform Docker build and push to GitHub Container Registry #56

Closed Sailesh-Singh closed 1 week ago

Sailesh-Singh commented 1 week ago

Purpose:

This PR adds support for multi-platform Docker builds (both amd64 and arm64) and automates the build and push process using GitHub Actions. It ensures the latest Docker images are available for both architectures.

Changes:

  1. Dockerfile:

    • Added multi-platform support using ARG PLATFORM.
    • Defined separate build stages for production, development, and worker.
  2. GitHub Actions Workflow:

    • Introduced a workflow that builds and pushes Docker images to GitHub Container Registry (ghcr.io).
    • The workflow triggers on main branch pushes and runs nightly.
    • Uses Docker Buildx to build for both linux/amd64 and linux/arm64 architectures.
    • Automatically pushes the image with the :nightly tag.