Skip to content

ci: add manual Minikube deployment workflow - #37

Merged
yashdotdev13 merged 3 commits into
mainfrom
feature/minikube-cd
Oct 25, 2026
Merged

yashdotdev13 merged 3 commits into
mainfrom
feature/minikube-cd

Conversation

@yashdotdev13

Copy link
Copy Markdown
Owner

Summary

Add a GitHub Actions workflow to deploy SafarSaathi's existing Kubernetes workloads to a local Minikube cluster using Docker images published by the CI pipeline.

Changes Made

  • Add a manually triggered deploy-minikube.yml workflow.
  • Accept an immutable image tag based on the Git commit SHA.
  • Validate the image tag, Kubernetes context, namespace, and existence of all eight service deployments before deployment.
  • Update existing deployments using kubectl set image.
  • Wait for each deployment rollout and attempt a rollback if a rollout fails.
  • Display the final deployment and pod status.
  • Restrict deployment execution to the main branch and a Windows self-hosted GitHub Actions runner.

Services Covered

  • Discovery Server
  • Auth Service
  • User Service
  • Trip Service
  • Companion Service
  • Notification Service
  • AI Service
  • API Gateway

Deployment Safety

  • Does not recreate the Kubernetes cluster or infrastructure.
  • Does not apply all existing Kubernetes manifests.
  • Does not modify AWS-specific ingress resources.
  • Uses manual execution to avoid unintended deployments.

Prerequisites

  • A configured Windows self-hosted GitHub Actions runner.
  • Minikube running with the minikube Kubernetes context selected.
  • Existing SafarSaathi deployments in the safarsaathi namespace.
  • Docker images published to Docker Hub with the specified commit SHA tag.

Testing

  • Validate the workflow configuration and review the changes before merging.
  • Execute the workflow manually after merging and verify the deployment rollouts.

Related Work

Extends the existing SafarSaathi CI pipeline, which builds, tests, and publishes Docker images.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T13:49:37.721538Z 2de87ae PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2de87ae86d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/deploy-minikube.yml Outdated
@@ -0,0 +1,125 @@
@'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Remove the PowerShell wrapper from the workflow file

GitHub Actions parses this file as YAML, but it starts with the literal @' and ends with a Set-Content command. These are shell commands, not workflow YAML, so Actions will reject the file and the manual deployment cannot run. Keep only the workflow YAML in this file.

Useful? React with 👍 / 👎.

@yashdotdev13
yashdotdev13 merged commit 03c2680 into main Oct 25, 2026
4 checks 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.

1 participant