From 5abdf06667166388b7bb8d885645f99035fcb5f6 Mon Sep 17 00:00:00 2001 From: mdkamran-stack Date: Sat, 23 Aug 2025 16:37:47 +0530 Subject: [PATCH 1/7] chore: verify github action --- src/product-catalog/main.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/product-catalog/main.go b/src/product-catalog/main.go index b0af92cdad..f62c3c0d94 100644 --- a/src/product-catalog/main.go +++ b/src/product-catalog/main.go @@ -320,9 +320,3 @@ func createClient(ctx context.Context, svcAddr string) (*grpc.ClientConn, error) - - - - - - From 88ef7a9233ca866c0617b7129567cf1b843a4ac9 Mon Sep 17 00:00:00 2001 From: mdkamran-stack Date: Sat, 23 Aug 2025 16:48:09 +0530 Subject: [PATCH 2/7] chore: verify github actionsss --- src/product-catalog/main.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/product-catalog/main.go b/src/product-catalog/main.go index f62c3c0d94..ecc1f6d9f3 100644 --- a/src/product-catalog/main.go +++ b/src/product-catalog/main.go @@ -320,3 +320,14 @@ func createClient(ctx context.Context, svcAddr string) (*grpc.ClientConn, error) + + + + + + + + + + + From 60ad6db7872f169f49fc2aefcee3b23cb0a13e9c Mon Sep 17 00:00:00 2001 From: mdkamran-stack Date: Sat, 23 Aug 2025 16:51:07 +0530 Subject: [PATCH 3/7] chore: verifyactions --- src/product-catalog/main.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/product-catalog/main.go b/src/product-catalog/main.go index ecc1f6d9f3..b0f2f31b30 100644 --- a/src/product-catalog/main.go +++ b/src/product-catalog/main.go @@ -319,15 +319,3 @@ func createClient(ctx context.Context, svcAddr string) (*grpc.ClientConn, error) - - - - - - - - - - - - From a33aec9c295bcd35a631a4f65411d3b76ff63416 Mon Sep 17 00:00:00 2001 From: mdkamran-stack Date: Sat, 23 Aug 2025 16:52:19 +0530 Subject: [PATCH 4/7] chore: verifyaction --- src/product-catalog/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/product-catalog/main.go b/src/product-catalog/main.go index b0f2f31b30..6b2139234c 100644 --- a/src/product-catalog/main.go +++ b/src/product-catalog/main.go @@ -317,5 +317,5 @@ func createClient(ctx context.Context, svcAddr string) (*grpc.ClientConn, error) } - +kamran From 2020d7e93e541f7da9882d1a8b6484e48bbcb086 Mon Sep 17 00:00:00 2001 From: mdkamran-stack Date: Sat, 23 Aug 2025 16:55:14 +0530 Subject: [PATCH 5/7] choe: verifyaction --- src/product-catalog/main.go | 39 ++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/src/product-catalog/main.go b/src/product-catalog/main.go index 6b2139234c..cbd9154e1f 100644 --- a/src/product-catalog/main.go +++ b/src/product-catalog/main.go @@ -317,5 +317,42 @@ func createClient(ctx context.Context, svcAddr string) (*grpc.ClientConn, error) } -kamran + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 9ede1a4301b10a5c53f3babf51dd84fe4a7b64bc Mon Sep 17 00:00:00 2001 From: mdkamran-stack Date: Sat, 23 Aug 2025 17:55:26 +0530 Subject: [PATCH 6/7] choe: verifyactions --- .github/workflows/ci.yaml | 13 +++++++------ src/product-catalog/main.go | 17 ----------------- 2 files changed, 7 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e62d0f6033..217f6054e8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -72,9 +72,10 @@ jobs: uses: docker/build-push-action@v6 with: context: src/product-catalog - file: src/product-catalog/Dockerfile + file: Dockerfile push: true - tags: ${{ secrets.DOCKER_USERNAME }}/product-catalog:${{github.run_id}} + tags: kamran112/product-catalog:${{ github.run_id }} + updatek8s: @@ -90,12 +91,12 @@ jobs: - name: Update tag in kubernetes deployment manifest run: | - sed -i "s|image: .*|image: ${{ secrets.DOCKER_USERNAME }}/product-catalog:${{github.run_id}}|" kubernetes/productcatalog/deploy.yaml + sed -i "s |image: .*|image:${{ secrets.DOCKER_USERNAME }}/product-catalog:${{github.run_id}}/' kubernetes/productcatalog/deploy.yaml - - name: Commit and push changes + - name: Commit and push change run: | - git config --global user.email "abhishek@gmail.com" - git config --global user.name "Abhishek Veeramalla" + git config --global user.email "imkam22@gmail.com" + git config --global user.name "mdkamran-stack" git add kubernetes/productcatalog/deploy.yaml git commit -m "[CI]: Update product catalog image tag" git push origin HEAD:main -f diff --git a/src/product-catalog/main.go b/src/product-catalog/main.go index cbd9154e1f..6fca882056 100644 --- a/src/product-catalog/main.go +++ b/src/product-catalog/main.go @@ -336,23 +336,6 @@ func createClient(ctx context.Context, svcAddr string) (*grpc.ClientConn, error) - - - - - - - - - - - - - - - - - From 31af1810342b15fa8af3c4b6d8102d1201af7312 Mon Sep 17 00:00:00 2001 From: mdkamran-stack Date: Sat, 23 Aug 2025 18:17:13 +0530 Subject: [PATCH 7/7] choe: verify --- .github/workflows/ci.yaml | 47 +++++++++++++++++++------------------ src/product-catalog/main.go | 3 +++ 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 217f6054e8..0dfd1b2e7a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -51,30 +51,31 @@ jobs: working-directory: src/product-catalog docker: - runs-on: ubuntu-latest - - needs: build - - steps: - - name: checkout code - uses: actions/checkout@v4 + runs-on: ubuntu-latest + needs: build + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} + + - name: Build and Push Docker Image + uses: docker/build-push-action@v4 + with: + context: ./src/product-catalog + file: Dockerfile + push: true + tags: | + kamran112/product-catalog:latest + kamran112/product-catalog:${{ github.run_id }} - - name: Install Docker - uses: docker/setup-buildx-action@v1 - - - name: Login to Docker - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_TOKEN }} - - - name: Docker Push - uses: docker/build-push-action@v6 - with: - context: src/product-catalog - file: Dockerfile - push: true - tags: kamran112/product-catalog:${{ github.run_id }} diff --git a/src/product-catalog/main.go b/src/product-catalog/main.go index 6fca882056..b594286b9f 100644 --- a/src/product-catalog/main.go +++ b/src/product-catalog/main.go @@ -335,6 +335,9 @@ func createClient(ctx context.Context, svcAddr string) (*grpc.ClientConn, error) + + +