Skip to content

Add cd pipelineAdd GitHub Actions CD Pipeline to Deploy Java App to AWS EKS#2

Open
jalowaini wants to merge 2 commits intomainfrom
add-cd-pipeline
Open

Add cd pipelineAdd GitHub Actions CD Pipeline to Deploy Java App to AWS EKS#2
jalowaini wants to merge 2 commits intomainfrom
add-cd-pipeline

Conversation

@jalowaini
Copy link
Owner

🎯 Purpose

This PR introduces a Continuous Delivery (CD) pipeline using GitHub Actions to automate deployment of the Java Spring Boot application to Amazon EKS after any push to the main branch.


✅ What’s Included:

  • Configured AWS credentials using GitHub Secrets.
  • Built and pushed Docker image to Amazon ECR.
  • Deployed the image to EKS cluster using kubectl.
  • Uses .github/workflows/cd-deploy.yml as the pipeline definition.

🚀 Trigger:

The workflow is triggered automatically on every push to the main branch.


📦 Files Added:

  • .github/workflows/cd-deploy.yml

🧪 How to Test:

  1. Merge this PR into main.
  2. Check the Actions tab to monitor the deployment.
  3. Verify that the app is running on EKS via kubectl get pods or access the service via LoadBalancer (if applicable).

📌 Notes:

  • Make sure your AWS secrets are configured in the repo:
    AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION, ECR_REPO_URI, EKS_CLUSTER_NAME.

Let me know if any changes are needed!

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