Skip to content

Conversation

@bhouston
Copy link
Member

@bhouston bhouston commented Mar 7, 2025

Add Docker Container and GitHub Workflow for Cloud Run Deployment

This PR implements issue #2, which involves containerizing the documentation site and setting up automated deployment to Google Cloud Run.

Changes Made:

Docker Configuration

  • Created a Dockerfile for building the documentation site using Node.js 20 Alpine
  • Added .dockerignore file to exclude unnecessary files from the Docker build
  • Configured the container to serve the built Docusaurus site on port 8080

GitHub Workflows

  • Added .github/workflows/deploy-docs.yml for CI/CD to Google Cloud Run
  • Added .github/workflows/lint.yml for code quality checks
  • Set up proper authentication and deployment steps

Documentation

  • Added docs/deployment.md with detailed information about the deployment process
  • Included instructions for local testing and troubleshooting

Code Quality

  • Added ESLint configuration with TypeScript and React support
  • Added lint script to package.json
  • Added necessary ESLint dependencies

How to Test:

  1. Build the Docker image locally: docker build -t mycoder-docs .
  2. Run the container: docker run -p 8080:8080 mycoder-docs
  3. Access the site at http://localhost:8080

Notes:

  • The workflow uses Google Cloud Workload Identity Federation for secure authentication
  • The deployment is configured to be publicly accessible
  • The deployment is triggered on pushes to the main branch

Resolves #2

bhouston added 4 commits March 7, 2025 01:44
- Created Dockerfile for building the documentation site
- Added GitHub workflow for CI/CD to deploy to Cloud Run
- Added linting workflow and ESLint configuration
- Added .dockerignore file to exclude unnecessary files
- Added documentation on the deployment process
- Added lint script and ESLint dependencies to package.json

Resolves #2
@bhouston bhouston merged commit 5a2bd3b into main Mar 7, 2025
1 check passed
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.

Add Docker Container and GitHub Workflow for Cloud Run Deployment

2 participants