Skip to content

Microservice azure #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 63 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
7c9870c
Create README.md
dilafar Feb 11, 2025
3beaee5
Update README.md
dilafar Feb 11, 2025
b98d772
Update README.md
dilafar Feb 11, 2025
ba7f222
azure change fix
dilafar Feb 12, 2025
7fd300a
Merge branch 'main' of https://github.com/dilafar/banking-microservic…
dilafar Feb 12, 2025
4ea0b53
fixes and formations added
dilafar Feb 13, 2025
6263417
Merge branch 'microservice-azure' of https://github.com/dilafar/banki…
dilafar Feb 13, 2025
135a148
Update README.md
dilafar Feb 13, 2025
199b0cc
docker-compose updated
dilafar Feb 16, 2025
b1f86af
Update README.md
dilafar Feb 16, 2025
9c250d4
Update README.md
dilafar Feb 16, 2025
764d157
Update README.md
dilafar Feb 16, 2025
e5bc0c5
Update README.md
dilafar Feb 16, 2025
a2987d4
Update README.md
dilafar Feb 16, 2025
0a591aa
Update README.md
dilafar Feb 16, 2025
e666b6c
Update README.md
dilafar Feb 16, 2025
461ab59
Update README.md
dilafar Feb 16, 2025
2371179
Update README.md
dilafar Feb 16, 2025
f46d3c8
Update README.md
dilafar Feb 16, 2025
ce77a41
format change updated
dilafar Feb 16, 2025
371cbe7
format change updated
dilafar Feb 16, 2025
3a399b4
format change updated
dilafar Feb 17, 2025
c217ca9
frontend changes added
dilafar Feb 17, 2025
aa2e027
frontend changes added
dilafar Feb 17, 2025
83e33ec
frontend changes added
dilafar Feb 17, 2025
39b870d
frontend changes added
dilafar Feb 17, 2025
92cc204
configserver microservice changes updated by GitHub Actions
github-actions[bot] Feb 17, 2025
75cb0fd
eurekaserver microservice changes updated by GitHub Actions
github-actions[bot] Feb 17, 2025
5023cdd
frontend changes added
dilafar Feb 17, 2025
561941a
configserver microservice changes updated by GitHub Actions
github-actions[bot] Feb 17, 2025
c7fc701
eurekaserver microservice changes updated by GitHub Actions
github-actions[bot] Feb 17, 2025
ea6abb4
frontend changes added
dilafar Feb 17, 2025
66c6cbf
configserver microservice changes updated by GitHub Actions
github-actions[bot] Feb 17, 2025
3090537
eurekaserver microservice changes updated by GitHub Actions
github-actions[bot] Feb 17, 2025
7637499
frontend changes added
dilafar Feb 17, 2025
2ed658d
configserver microservice changes updated by GitHub Actions
github-actions[bot] Feb 17, 2025
6e86081
eurekaserver microservice changes updated by GitHub Actions
github-actions[bot] Feb 17, 2025
c7d19db
loans microservice changes updated by GitHub Actions
github-actions[bot] Feb 18, 2025
078fab9
cards microservice changes updated by GitHub Actions
github-actions[bot] Feb 18, 2025
0fb9c09
frontend changes added
dilafar Feb 18, 2025
617688d
configserver microservice changes updated by GitHub Actions
github-actions[bot] Feb 18, 2025
b1e7e48
eurekaserver microservice changes updated by GitHub Actions
github-actions[bot] Feb 18, 2025
ffb1a9a
accounts microservice changes updated by GitHub Actions
github-actions[bot] Feb 18, 2025
cf682e0
cards microservice changes updated by GitHub Actions
github-actions[bot] Feb 18, 2025
948e353
loans microservice changes updated by GitHub Actions
github-actions[bot] Feb 18, 2025
e55acc2
frontend changes added
dilafar Feb 18, 2025
50694cc
configserver microservice changes updated by GitHub Actions
github-actions[bot] Feb 18, 2025
e2afce7
eurekaserver microservice changes updated by GitHub Actions
github-actions[bot] Feb 18, 2025
ada58e7
accounts microservice changes updated by GitHub Actions
github-actions[bot] Feb 18, 2025
6492ecc
loans microservice changes updated by GitHub Actions
github-actions[bot] Feb 18, 2025
1c4ec9b
cards microservice changes updated by GitHub Actions
github-actions[bot] Feb 18, 2025
2636895
Automated chart updates by GitHub Actions
github-actions[bot] Feb 18, 2025
dff7734
Update README.md
dilafar Feb 18, 2025
0cac2d1
frontend changes added
dilafar Feb 18, 2025
f5968f3
frontend changes added
dilafar Feb 18, 2025
7c89715
frontend changes added
dilafar Feb 18, 2025
ef7538a
elk docker-compose added
dilafar Mar 31, 2025
1eebbb8
elk docker-compose added
dilafar Mar 31, 2025
8a29cb4
elk docker-compose added
dilafar Mar 31, 2025
129ba7f
Update README.md
dilafar Mar 31, 2025
c8fc011
fix redme.md
dilafar Apr 2, 2025
b12c333
code refactoring
dilafar Apr 6, 2025
07022b9
Update README.md
dilafar Apr 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/accounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git pull origin main || true
git pull origin microservice-azure || true
cp accounts/hadolint_accounts.txt reports/docker-lint/hadolint_accounts.txt
git add .
git commit -m "accounts microservice changes updated by GitHub Actions"
git push origin main
git push origin microservice-azure
24 changes: 13 additions & 11 deletions .github/workflows/cards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,17 @@ jobs:
docker run --rm -i hadolint/hadolint < Dockerfile | tee hadolint_cards.txt


# - name: SonarQube Quality Gate check
# id: sonarqube-quality-gate-check
# uses: sonarsource/sonarqube-quality-gate-action@master
# with:
# scanMetadataReportFile: cards/.scannerwork/report-task.txt
# pollingTimeoutSec: 300
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
- name: SonarQube Quality Gate check
id: sonarqube-quality-gate-check
uses: sonarsource/sonarqube-quality-gate-action@master
with:
scanMetadataReportFile: cards/.scannerwork/report-task.txt
pollingTimeoutSec: 300
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}


- name: Log in to Azure Container Registry
uses: azure/docker-login@v1
with:
Expand Down Expand Up @@ -175,8 +177,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git pull origin main || true
git pull origin microservice-azure || true
cp cards/hadolint_cards.txt reports/docker-lint/hadolint_cards.txt
git add .
git commit -m "cards microservice changes updated by GitHub Actions"
git push origin main
git push origin microservice-azure
52 changes: 0 additions & 52 deletions .github/workflows/check-frontend-status.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/configserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git pull origin main || true
git pull origin microservice-azure || true
cp configserver/hadolint_configserver.txt reports/docker-lint/hadolint_configserver.txt
git add .
git commit -m "configserver microservice changes updated by GitHub Actions"
git push origin main
git push origin microservice-azure
60 changes: 0 additions & 60 deletions .github/workflows/eks_cluster_deploy.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/eurekaserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git pull origin main || true
git pull origin microservice-azure || true
cp eurekaserver/hadolint_eurekaserver.txt reports/docker-lint/hadolint_eurekaserver.txt
git add .
git commit -m "eurekaserver microservice changes updated by GitHub Actions"
git push origin main
git push origin microservice-azure

136 changes: 68 additions & 68 deletions .github/workflows/final.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:

- name: Update Chart Versions
run: |
git pull origin main || true
git pull origin microservice-azure || true
export REGISTRY=${{ secrets.ACR_LOGIN_SERVER }}
export IMAGE_VERSION=${{ needs.accounts.outputs.IMAGE_VERSION }}
export FRONTEND_VERSION=${{ needs.frontend.outputs.VERSION }}
Expand Down Expand Up @@ -159,70 +159,70 @@ jobs:
run: |
git add .
git commit -m "Automated chart updates by GitHub Actions"
git push origin main

# commit-changes:
# runs-on: ubuntu-latest
# needs: [ accounts, frontend, cards, loans, changeChart ]
# name: Update gh-pages
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v3
# with:
# ref: gh-pages
# fetch-depth: 0
#
# - name: Download Chart Releaser
# run: |
# curl -LO https://github.com/helm/chart-releaser/releases/download/v1.7.0/chart-releaser_1.7.0_linux_amd64.tar.gz
# tar -xzf chart-releaser_1.7.0_linux_amd64.tar.gz
# sudo mv cr /usr/local/bin/
#
# - name: Update Helm Chart Versions
# run: |
# git pull origin gh-pages || true
# export IMAGE_VERSION=${{ needs.accounts.outputs.IMAGE_VERSION }}
# export FRONTEND_VERSION=${{ needs.frontend.outputs.VERSION }}
#
# # Update Helm values
# sed -i 's/^appVersion: .*/appVersion: accounts-v'"${IMAGE_VERSION}"'/g' helm/charts/accounts/values.yaml
# sed -i 's/^appVersion: .*/appVersion: cards-v'"${IMAGE_VERSION}"'/g' helm/charts/cards/values.yaml
# sed -i 's/^appVersion: .*/appVersion: loans-v'"${IMAGE_VERSION}"'/g' helm/charts/loans/values.yaml
# sed -i 's/^appVersion: .*/appVersion: configserver-v'"${IMAGE_VERSION}"'/g' helm/charts/configserver/values.yaml
# sed -i 's/^appVersion: .*/appVersion: eurekaserver-v'"${IMAGE_VERSION}"'/g' helm/charts/eurekaserver/values.yaml
# sed -i 's/^appVersion: .*/appVersion: gateway-v'"${IMAGE_VERSION}"'/g' helm/charts/gatewayserver/values.yaml
# sed -i 's/^appVersion: .*/appVersion: frontend-v'"${FRONTEND_VERSION}"'/g' helm/charts/frontend/values.yaml
#
# chmod +x chart-version-increment.sh
# for chart in helm/Chart.yaml helm/charts/*/Chart.yaml; do
# ./chart-version-increment.sh "$chart"
# done
##
# - name: Package and Upload Charts
# env:
# CR_TOKEN: ${{ secrets.CR_TOKEN }}
# run: |
# cd helm
# cr package
# cr upload --owner dilafar --git-repo banking-microservice-app --skip-existing
# cr index --owner dilafar --git-repo banking-microservice-app
#
# - name: Configure Git
# run: |
# git config --global user.name "github-actions[bot]"
# git config --global user.email "github-actions[bot]@users.noreply.github.com"
#
# - name: Commit and Push Changes
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# git add .
# git commit -m "Automated gh-pages updates by GitHub Actions"
# git push origin gh-pages
# kubernets-deployment-check:
# needs: commit-changes
# uses: ./.github/workflows/check-frontend-status.yml
# secrets:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# REGISTRY: ${{ secrets.REGISTRY }}
git push origin microservice-azure

commit-changes:
runs-on: ubuntu-latest
needs: [ accounts, frontend, cards, loans, changeChart ]
name: Update gh-pages
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
ref: gh-pages
fetch-depth: 0

- name: Download Chart Releaser
run: |
curl -LO https://github.com/helm/chart-releaser/releases/download/v1.7.0/chart-releaser_1.7.0_linux_amd64.tar.gz
tar -xzf chart-releaser_1.7.0_linux_amd64.tar.gz
sudo mv cr /usr/local/bin/

- name: Update Helm Chart Versions
run: |
git pull origin gh-pages || true
export IMAGE_VERSION=${{ needs.accounts.outputs.IMAGE_VERSION }}
export FRONTEND_VERSION=${{ needs.frontend.outputs.VERSION }}

# Update Helm values
sed -i 's/^appVersion: .*/appVersion: accounts-v'"${IMAGE_VERSION}"'/g' helm/charts/accounts/values.yaml
sed -i 's/^appVersion: .*/appVersion: cards-v'"${IMAGE_VERSION}"'/g' helm/charts/cards/values.yaml
sed -i 's/^appVersion: .*/appVersion: loans-v'"${IMAGE_VERSION}"'/g' helm/charts/loans/values.yaml
sed -i 's/^appVersion: .*/appVersion: configserver-v'"${IMAGE_VERSION}"'/g' helm/charts/configserver/values.yaml
sed -i 's/^appVersion: .*/appVersion: eurekaserver-v'"${IMAGE_VERSION}"'/g' helm/charts/eurekaserver/values.yaml
sed -i 's/^appVersion: .*/appVersion: gateway-v'"${IMAGE_VERSION}"'/g' helm/charts/gatewayserver/values.yaml
sed -i 's/^appVersion: .*/appVersion: frontend-v'"${FRONTEND_VERSION}"'/g' helm/charts/frontend/values.yaml

chmod +x chart-version-increment.sh
for chart in helm/Chart.yaml helm/charts/*/Chart.yaml; do
./chart-version-increment.sh "$chart"
done

- name: Package and Upload Charts
env:
CR_TOKEN: ${{ secrets.CR_TOKEN }}
run: |
cd helm
cr package
cr upload --owner dilafar --git-repo banking-microservice-app --skip-existing
cr index --owner dilafar --git-repo banking-microservice-app

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

- name: Commit and Push Changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git add .
git commit -m "Automated gh-pages updates by GitHub Actions"
git push origin gh-pages
kubernets-deployment-check:
needs: commit-changes
uses: ./.github/workflows/check-frontend-status.yml
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
REGISTRY: ${{ secrets.REGISTRY }}
4 changes: 2 additions & 2 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git pull origin main || true
git pull origin microservice-azure || true
cp frontend/hadolint_frontend.txt reports/docker-lint/hadolint_frontend.txt
git add .
git commit -m "frontend microservice changes updated by GitHub Actions"
git push origin main
git push origin microservice-azure

4 changes: 2 additions & 2 deletions .github/workflows/gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git pull origin main || true
git pull origin microservice-azure || true
cp gateway/hadolint_gateway.txt reports/docker-lint/hadolint_gateway.txt
git add .
git commit -m "gateway microservice changes updated by GitHub Actions"
git push origin main
git push origin microservice-azure
24 changes: 12 additions & 12 deletions .github/workflows/loans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,18 +163,18 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git pull origin main || true
git pull origin microservice-azure || true
cp loans/hadolint_loans.txt reports/docker-lint/hadolint_loans.txt
git add .
git commit -m "loans microservice changes updated by GitHub Actions"
git push origin main

# - name: SonarQube Quality Gate check
# id: sonarqube-quality-gate-check
# uses: sonarsource/sonarqube-quality-gate-action@master
# with:
# scanMetadataReportFile: loans/.scannerwork/report-task.txt
# pollingTimeoutSec: 300
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
git push origin microservice-azure

- name: SonarQube Quality Gate check
id: sonarqube-quality-gate-check
uses: sonarsource/sonarqube-quality-gate-action@master
with:
scanMetadataReportFile: loans/.scannerwork/report-task.txt
pollingTimeoutSec: 300
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
Loading