Skip to content

Deploy to GCP #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Jun 11, 2025
Merged

Deploy to GCP #26

merged 27 commits into from
Jun 11, 2025

Conversation

cindytsai
Copy link
Collaborator

@cindytsai cindytsai commented Jun 11, 2025

@Copilot Copilot AI review requested due to automatic review settings June 11, 2025 00:24
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces an automated deployment workflow to Google Cloud Platform using Workload Identity Federation (WIF), replacing the legacy Render deployment workflow.

  • Added a new GCP deployment workflow (.github/workflows/deploy_gcp.yml) that authenticates with GCP and remotely executes a deployment script.
  • Removed the old Render deployment workflow (.github/workflows/deploy.yml).
  • Added a deployment script (.github/scripts/deploy_deepgit.sh) for building and deploying both frontend and backend components.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/deploy_gcp.yml New workflow enabling deployment to GCP via SSH and Workload Identity.
.github/workflows/deploy.yml Legacy Render deployment workflow removed.
.github/scripts/deploy_deepgit.sh New deployment script to pull the deploy branch, build, and deploy code.

git pull origin deploy

# build and deploy the frontend
cd ~/projects/deepgit
Copy link
Preview

Copilot AI Jun 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The directory change 'cd ~/projects/deepgit' is repeated (line 5 and line 9). Consider removing the redundant command to streamline the script.

Suggested change
cd ~/projects/deepgit

Copilot uses AI. Check for mistakes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should keep it to make it more clear.

@cindytsai cindytsai changed the title Deploy Deploy to GCP Jun 11, 2025
@cindytsai cindytsai requested a review from yilinxia June 11, 2025 00:28
@yilinxia yilinxia merged commit 7e137b0 into main Jun 11, 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.

2 participants