Skip to content

ci: add backend verification and Docker image publishing - #36

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

yashdotdev13 merged 3 commits into
mainfrom
feature/ci-cd-pipeline

Conversation

@yashdotdev13

Copy link
Copy Markdown
Owner

Summary

Introduces a GitHub Actions workflow to automate backend verification and Docker image publishing for SafarSaathi.

Changes

  • Add a GitHub Actions CI/CD workflow using Java 21 and Maven.
  • Build and install the shared common-module.
  • Build and verify all eight microservices:
    • API Gateway
    • Authentication Service
    • User Service
    • Trip Service
    • Companion Service
    • AI Service
    • Notification Service
    • Discovery Server
  • Build and publish Docker images to Docker Hub after successful verification on main.
  • Tag published images with the corresponding Git commit SHA.
  • Enable Maven dependency caching and Docker build caching.
  • Add a root-level .dockerignore to exclude unnecessary files from Docker build contexts.

Workflow Behavior

  • Pull requests to main: Run backend verification; skip Docker image publishing.
  • Pushes to main: Run verification, then publish Docker images if verification succeeds.
  • Manual execution: Support workflow dispatch from GitHub Actions.

Required Configuration

Configure the following GitHub repository secrets before image publishing:

  • DOCKERHUB_USERNAME
  • DOCKERHUB_TOKEN

Testing

  • GitHub Actions verification will be checked after opening this PR.
  • Docker image publishing will be validated after the required secrets are configured.

Scope

This PR introduces CI and Docker image publishing. Automated Kubernetes deployment is not included in this change.

@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-25T12:59:26.340870Z 55d9e4b 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: 55d9e4bce0

ℹ️ 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 on lines +70 to +71
mvn --batch-mode --no-transfer-progress \
-f "${service}/pom.xml" clean verify

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 Configure dependencies for the Spring context tests

mvn clean verify runs the services’ @SpringBootTest context tests, but this job starts no PostgreSQL or Kafka services and sets none of the application environment variables. For example, the user-service test loads a localhost PostgreSQL URL and requires CLOUDINARY_* placeholders, so verification fails on a clean GitHub runner and prevents image publishing. Add CI dependencies and test-profile configuration, or make these tests independent of those services.

Useful? React with 👍 / 👎.

@yashdotdev13
yashdotdev13 merged commit ea4d085 into main Oct 25, 2026
2 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