Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8a0301b
Update values.yaml
LondheShubham153 Jul 26, 2025
b13967c
Merge branch 'gitops'
LondheShubham153 Jul 26, 2025
68b38ae
Revert "Merge branch 'gitops'"
LondheShubham153 Jul 26, 2025
d393464
📚 Improve ArgoCD UI section in README
LondheShubham153 Jul 26, 2025
27c2d09
Added Argocd ui image
LondheShubham153 Jul 26, 2025
8ec6698
Added branching strategies
LondheShubham153 Jul 26, 2025
b7b9e4c
Delete scripts directory
LondheShubham153 Jul 26, 2025
7a5dda8
Update README.md
LondheShubham153 Jul 27, 2025
22fd78e
Update README.md
LondheShubham153 Jul 27, 2025
0a2232a
Update README.md
LondheShubham153 Jul 29, 2025
aa27ad4
Update README.md
LondheShubham153 Jul 29, 2025
6aa463f
Update README.md
LondheShubham153 Jul 29, 2025
f18a97e
Update README.md
LondheShubham153 Jul 29, 2025
0c4812c
docs: enhanced readme.md
Jul 31, 2025
4ed13c4
Update README.md
pooja-bhavani Jul 31, 2025
545589c
Update retail-store-cart.yaml
pooja-bhavani Aug 1, 2025
5da3f29
Update values.yaml
pooja-bhavani Aug 1, 2025
02a64a5
Update bare.html
pooja-bhavani Aug 1, 2025
c94307e
Merge pull request #4 from pooja-bhavani/main
LondheShubham153 Aug 1, 2025
62d349e
Update README.md
iemafzalhassan Aug 1, 2025
fba5c7c
Merge pull request #5 from LondheShubham153/iemafzalhassan-patch-1
LondheShubham153 Aug 2, 2025
63ec947
fix: terraform single phase deployment
HasanAshab Aug 27, 2025
1765b31
docs: Update README with latest infra related instructions
HasanAshab Sep 22, 2025
768c258
Merge pull request #11 from HasanAshab/main
LondheShubham153 Oct 10, 2025
530fa23
changes
Dec 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Build and Deploy Microservices

on:
push:
branches: [gitops]
paths: ['src/**']

workflow_dispatch:

env:
AWS_REGION: ${{ secrets.AWS_REGION }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write
id-token: write

jobs:
build-ui:
runs-on: ubuntu-latest
if: |
github.event_name == 'workflow_dispatch' ||
contains(github.event.head_commit.modified, 'src/ui/') ||
contains(github.event.head_commit.added, 'src/ui/') ||
contains(github.event.head_commit.removed, 'src/ui/')
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Java 21
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '21'
cache: 'maven'

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

- name: Set ECR registry
run: echo "REGISTRY=${{ steps.login-ecr.outputs.registry }}" >> $GITHUB_ENV

- name: Build and push UI Docker image
uses: docker/build-push-action@v5
with:
context: src/ui
file: src/ui/Dockerfile
push: true
tags: |
${{ env.REGISTRY }}/retail-store-ui:${{ github.sha }}
${{ env.REGISTRY }}/retail-store-ui:latest
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Install yq
uses: mikefarah/yq@master

- name: Update Helm values for UI service
run: |
yq eval '.image.tag = "${{ github.sha }}"' -i src/ui/chart/values.yaml
yq eval '.image.repository = "${{ env.REGISTRY }}/retail-store-ui"' -i src/ui/chart/values.yaml

- name: Verify Helm values changes
run: git diff src/ui/chart/values.yaml

- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Commit and push Helm values changes
run: |
git add src/ui/chart/values.yaml
git commit -m "chore: update UI image to ${{ github.sha }}"
git push
243 changes: 0 additions & 243 deletions .github/workflows/deploy.yml

This file was deleted.

Loading