{"id":23063905,"url":"https://github.com/moshclouds/archfleet","last_synced_at":"2026-05-01T03:33:53.046Z","repository":{"id":267497593,"uuid":"901237930","full_name":"moshclouds/ArchFleet","owner":"moshclouds","description":"🚀 Multi-Arch Docker Builds: A GitHub project showcasing Docker 🐳 builds for AMD64 and ARM64, deploying to Google Cloud Run ☁️. ARM64 fails intentionally to highlight 🛠️ multi-arch handling with Google Artifact Registry 🗂️ and CI/CD via GitHub Actions 🤖.❌❌ Due To credit limitation the below URL resources may not be available ❌❌","archived":false,"fork":false,"pushed_at":"2024-12-11T01:13:16.000Z","size":113,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-10T15:48:25.737Z","etag":null,"topics":["docker","gar","gcp","gcr","multi-arch-images"],"latest_commit_sha":null,"homepage":"https://archfleet-backend-amd64-97415322905.asia-southeast1.run.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moshclouds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-10T09:42:55.000Z","updated_at":"2024-12-11T01:13:20.000Z","dependencies_parsed_at":"2024-12-10T18:25:43.298Z","dependency_job_id":"2f308129-9fd2-4176-a12a-40b2252520b7","html_url":"https://github.com/moshclouds/ArchFleet","commit_stats":null,"previous_names":["moshclouds/archfleet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/moshclouds/ArchFleet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshclouds%2FArchFleet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshclouds%2FArchFleet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshclouds%2FArchFleet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshclouds%2FArchFleet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moshclouds","download_url":"https://codeload.github.com/moshclouds/ArchFleet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshclouds%2FArchFleet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32484352,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","gar","gcp","gcr","multi-arch-images"],"created_at":"2024-12-16T04:13:33.266Z","updated_at":"2026-05-01T03:33:53.007Z","avatar_url":"https://github.com/moshclouds.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Multi-Architecture Docker Build and Deploy to Google Cloud Run\n\nThis repository demonstrates how to build **multi-architecture Docker images (AMD64 and ARM64)** using **Docker Buildx** and deploy them to **Google Cloud Run** (for AMD64 only). The ARM64 build intentionally fails during deployment to Cloud Run, as ARM64 is not supported by Cloud Run, to explore Docker multi-architecture builds for learning purposes.\n\n---\n\u003cimg width=\"960\" alt=\"23 (1)\" src=\"https://github.com/user-attachments/assets/7e71aa7d-5a03-40b2-888a-2e8b519d2771\"\u003e\n\n\n---\n\n\u003c!-- ## 📋 Table of Contents\n1. [Project Overview](#project-overview)\n2. [Technologies Used](#technologies-used)\n3. [Architecture Overview](#architecture-overview)\n4. [Workflow Setup](#workflow-setup)\n   - [1. AMD64 Workflow](#1-amd64-workflow)\n   - [2. ARM64 Workflow](#2-arm64-workflow)\n5. [Learning Objective](#learning-objective)\n6. [Getting Started](#getting-started)\n7. [Secrets Configuration](#secrets-configuration)\n8. [Deployment URLs](#deployment-urls)\n\n--- --\u003e\n\n## 🌟 Project Overview\nThis project focuses on:\n1. Building Docker images for both **AMD64** and **ARM64** architectures using Docker Buildx.\n2. Deploying the AMD64 image to **Google Cloud Run**.\n3. Studying and understanding multi-architecture builds by intentionally deploying ARM64, which fails as **ARM64 is not supported in Google Cloud Run**.\n\n---\n\n## 🛠️ Technologies Used\n- **Google Cloud Run**: For serverless container hosting (AMD64 only).\n- **Google Artifact Registry (GAR)**: To store Docker images.\n- **GitHub Actions**: For CI/CD workflows.\n- **Docker Buildx**: To build multi-platform Docker images.\n\n---\n\n## 🏗️ Architecture Overview\n- **Input**: Source code is pushed to the `master` branch.\n- **Pipeline Steps**:\n  1. Authenticate with Google Cloud.\n  2. Build architecture-specific Docker images (`AMD64` and `ARM64`).\n  3. Push images to **Google Artifact Registry (GAR)**.\n  4. Deploy **AMD64** image to **Google Cloud Run**.\n  5. Attempt to deploy **ARM64** image to Cloud Run, which fails due to lack of support.\n\n---\n\n## 📋 Workflow Setup\n\n### **1. AMD64 Workflow**\nThe workflow file is located at `.github/workflows/build-and-deploy-amd.yml`.\n\n#### Steps:\n1. Authenticate with Google Cloud using `google-github-actions/auth`.\n2. Build an `AMD64` image using Docker Buildx.\n3. Push the image to Google Artifact Registry.\n4. Deploy the containerized application to Google Cloud Run for `AMD64`.\n\n---\n\n### **2. ARM64 Workflow**\nThe workflow file is located at `.github/workflows/build-and-deploy-arm.yml`.\n\n#### Steps:\n1. Authenticate with Google Cloud using `google-github-actions/auth`.\n2. Build an `ARM64` image using Docker Buildx.\n3. Push the image to Google Artifact Registry.\n4. Attempt to deploy the containerized application to Cloud Run for `ARM64` (fails as ARM64 is unsupported).\n\n---\n\n## 🎯 Learning Objective\nThis project is intentionally designed to:\n1. Understand and implement multi-architecture Docker builds using Docker Buildx.\n2. Explore the limitations of deployment platforms like Google Cloud Run (ARM64 is not supported).\n3. Simulate real-world scenarios where architecture constraints may arise during deployment.\n\n---\n\n## 🚀 Getting Started\n\n### Prerequisites:\n1. **Google Cloud Project**: Make sure you have a project set up.\n2. **Google Artifact Registry**:\n   - Create separate repositories for AMD64 and ARM64.\n   - Example repositories:\n     - `amd64-repo`\n     - `arm64-repo`\n3. **GitHub Secrets**: Configure the required secrets in your repository settings.\n\n---\n\n## 🔑 Secrets Configuration\n\nAdd the following secrets to your GitHub repository:\n| Secret Name           | Description                                     |\n|-----------------------|-------------------------------------------------|\n| `GCP_CREDENTIALS`     | JSON key of your Google Cloud Service Account. |\n| `GAR_REGION`          | Region of your Google Artifact Registry (e.g., `us-central1`). |\n| `PROJECT_ID`          | Google Cloud Project ID.                       |\n| `GCR_SERVICE_AMD`     | Cloud Run service name for `AMD64`.            |\n| `GCR_SERVICE_ARM`     | Cloud Run service name for `ARM64`.            |\n| `GAR_NAME_AMD`        | Docker image name for `AMD64`.                 |\n| `GAR_NAME_ARM`        | Docker image name for `ARM64`.                 |\n| `GAR_REPO_NAME_AMD`   | Artifact Registry repository for `AMD64`.      |\n| `GAR_REPO_NAME_ARM`   | Artifact Registry repository for `ARM64`.      |\n| `GCP_REGION`          | Deployment region for Cloud Run (e.g., `us-central1`). |\n\n---\n\n## 🌐 Deployment URLs\nAfter successful deployment, the services can be accessed at:\n\n| Architecture | Deployment Status   | Deployment URL                                               |\n|--------------|---------------------|-------------------------------------------------------------|\n| **AMD64**    | Successful          | `https://\u003cGCR_SERVICE_AMD\u003e-\u003cGCP_REGION\u003e.a.run.app`          |\n| **ARM64**    | Failed (Expected)   | N/A                                                         |\n\nReplace `\u003cGCR_SERVICE_AMD\u003e` with the Cloud Run service name and `\u003cGCP_REGION\u003e` with the deployment region.\n\n---\n\n## 🧹 Cleaning Up\nTo avoid unnecessary charges:\n1. Delete the deployed AMD64 service from Google Cloud Run.\n2. Remove both AMD64 and ARM64 images from Google Artifact Registry.\n3. Delete unused Google Cloud resources.\n\n---\n\n## 📝 Proof Of Work\n\nBelow are the Proofs that GCP doesnt supports the ARM64 architecture as of the repo published  \n\n![alt text](stack_proof_image.png)\n\u003cbr/\u003e\n![alt text](gcp_proof.png)\n\nBelow are the url's that are generated by the usecase of this project\n\n| Architecture | Deployment Status   | Deployment URL                                               |\n|--------------|---------------------|-------------------------------------------------------------|\n| **AMD64**    | Successful          | `https://archfleet-backend-amd64-97415322905.asia-southeast1.run.app/` |\n| **ARM64**    | Failed (Expected)   | `https://archfleet-backend-arm64-97415322905.asia-southeast1.run.app/` |\n\nBelow Images shows the Deployment being failed because of the **ARM64** Architecture\n\u003cbr/\u003e\n![image](https://github.com/user-attachments/assets/02d0db85-89ee-4e10-aab1-cdfd78a11823)\n\u003cbr/\u003e\n![image](https://github.com/user-attachments/assets/4fa44060-3981-4b8a-8e78-3a9882495a33)\n\u003cbr/\u003e\n\u003cbr/\u003e\n\nBelow Images shows the Deployment being Success because of the **AMD64** Architecture\n\u003cbr/\u003e\n![image](https://github.com/user-attachments/assets/ecd8208a-1682-4dda-8a86-e7308ed6b06c)\n\u003cbr/\u003e\n![image](https://github.com/user-attachments/assets/6cb58068-be4f-494b-8ff1-5f04a1efdd92)\n\n---\n\n## 👥 Acknowledgements\n- **Google Cloud** for providing serverless deployment capabilities.\n- **Docker Buildx** for enabling multi-platform image building.\n- **GitHub Actions** for a smooth CI/CD experience.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoshclouds%2Farchfleet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoshclouds%2Farchfleet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoshclouds%2Farchfleet/lists"}