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 b0af92cdad..6fca882056 100644 --- a/src/product-catalog/main.go +++ b/src/product-catalog/main.go @@ -322,6 +322,19 @@ func createClient(ctx context.Context, svcAddr string) (*grpc.ClientConn, error) + + + + + + + + + + + + +