35 Commits
dev ... main

Author SHA1 Message Date
CI Bot
beac734a9b chore: optimize images via CI 2026-04-16 15:52:06 +00:00
409e1b313d Update .gitea/workflows/compressimages.yml 2026-04-16 15:28:03 +00:00
4a15e9dae4 Merge pull request 'Update .gitignore' (#9) from rajendra into main
Reviewed-on: #9
2026-04-16 15:11:26 +00:00
3c1a2d9a1b Update .gitignore
All checks were successful
Sonar Check / SonarQube Scan (pull_request) Successful in 1m14s
2026-04-16 15:06:28 +00:00
43114cf955 Merge pull request 'Update .gitea/workflows/compressimages.yml' (#8) from rajendra into main
Reviewed-on: #8
2026-04-16 15:04:43 +00:00
b755b8ac7e Update .gitea/workflows/compressimages.yml
All checks were successful
Sonar Check / SonarQube Scan (pull_request) Successful in 1m14s
2026-04-16 15:00:44 +00:00
8e0bfde1df Merge pull request 'rajendra' (#7) from rajendra into main
Reviewed-on: #7
2026-04-16 12:33:07 +00:00
358458117c Update .gitea/workflows/sonar.yml
All checks were successful
Sonar Check / SonarQube Scan (pull_request) Successful in 1m14s
2026-04-16 12:30:17 +00:00
509cab1a91 Update .gitignore
All checks were successful
Sonar Check / SonarQube Scan (pull_request) Successful in 1m18s
2026-04-16 11:56:51 +00:00
e815c23b92 Add .gitea/workflows/sonar.yml 2026-04-16 11:53:41 +00:00
91fcb926ee Update .gitea/workflows/ci.yml.bak 2026-04-16 11:50:25 +00:00
CI Bot
6025684cc3 chore: optimize images via CI 2026-04-16 10:43:18 +00:00
6e1a1de528 Update .gitea/workflows/compressimages.yml
Some checks failed
CI / ci (push) Has been cancelled
2026-04-16 10:34:32 +00:00
d235e79b3d Update .gitea/workflows/compressimages.yml
Some checks failed
CI / ci (push) Has been cancelled
2026-04-16 10:30:49 +00:00
CI Bot
76b9c63cd4 chore: optimize images via CI 2026-04-16 09:49:39 +00:00
ad4d64a180 Merge pull request 'Add .gitea/workflows/compressimages.yml' (#4) from rajendra.reddy-patch-1 into main
Some checks failed
CI / ci (push) Failing after 1m33s
Reviewed-on: #4
2026-04-16 09:43:01 +00:00
866aebb456 Add .gitea/workflows/compressimages.yml
Some checks failed
CI / ci (pull_request) Has been cancelled
2026-04-16 09:42:13 +00:00
WDI-Ideas
97549443f3 chore(ci): pin caller to pure-flag central workflow commit
Some checks failed
CI / ci (push) Failing after 2m11s
Update reusable workflow SHA so caller uses the central ci.yml version without job needs dependencies.

Made-with: Cursor
2026-04-09 12:22:37 +05:30
WDI-Ideas
cda6f02fe9 fix(ci): use SONARQUBE_HOST/TOKEN secret mapping and pin central SHA
All checks were successful
CI / ci (push) Successful in 2m3s
Update caller secrets mapping to SONARQUBE_HOST and SONARQUBE_TOKEN and pin to central workflow commit that expects these names.

Made-with: Cursor
2026-04-08 20:20:34 +05:30
WDI-Ideas
954d5aaad1 fix(ci): pin reusable central workflow to exact commit
All checks were successful
CI / ci (push) Successful in 1m39s
Avoid runner using stale @main cache by pinning wdipl-actions reusable workflow to a known commit with run_build/run_sonar/run_deploy inputs.

Made-with: Cursor
2026-04-08 20:06:04 +05:30
WDI-Ideas
0406feb2d0 chore(ci): normalize boolean inputs as strings and pass testing path
All checks were successful
CI / ci (push) Successful in 0s
Use explicit string true/false values for run flags and add app_path_testing to match central/deploy workflow inputs.

Made-with: Cursor
2026-04-08 20:01:43 +05:30
0efd612438 Add .gitea/workflows/ci.yml
All checks were successful
CI / ci (push) Successful in 0s
2026-04-07 10:40:55 +00:00
09a2b391e8 Update .gitea/workflows/sonar.yml.bak 2026-04-07 10:39:27 +00:00
24af58f0ab Update .gitea/workflows/sonarbak.yml
Some checks failed
CI / sonar (push) Failing after 10s
2026-04-07 10:39:01 +00:00
84474bec29 Update .gitea/workflows/sonar.yml
Some checks failed
CI / sonar (push) Failing after 10s
2026-04-06 13:09:42 +00:00
3eab945376 Update .gitea/workflows/sonar.yml
Some checks failed
CI / sonar (push) Failing after 1m15s
2026-04-06 12:31:57 +00:00
ae107cabe2 Update .gitea/workflows/sonar.yml
All checks were successful
CI-Testsonar-4 / sonar (push) Successful in 1m10s
2026-04-06 11:52:22 +00:00
0b75658b06 Update .gitea/workflows/sonar.yml
Some checks failed
CI-Testsonar-4 / sonar (push) Failing after 1m16s
2026-04-06 11:48:36 +00:00
b95bf55bb1 Update .gitea/workflows/sonar.yml
Some checks failed
CI-Testsonar-1 / sonar (push) Failing after 1m19s
2026-04-06 11:13:54 +00:00
3f9db7342c Update .gitea/workflows/sonar.yml
Some checks failed
CI-Testsonar-1 / sonar (push) Failing after 1m11s
2026-04-06 11:08:47 +00:00
41548e0ebc Update .gitea/workflows/sonar.yml
Some checks failed
CI-Testsonar-1 / sonar (push) Failing after 0s
2026-04-06 11:02:45 +00:00
c088f3530c Update .gitea/workflows/sonar.yml
Some checks failed
CI-Testsonar-1 / sonar (push) Failing after 1m12s
2026-04-06 10:54:22 +00:00
9db52fda60 Update .gitea/workflows/sonar.yml
Some checks failed
CI-Testsonar-1 / sonar (push) Failing after 0s
2026-04-06 10:52:54 +00:00
9131c22dcc Update .gitea/workflows/sonar.yml
Some checks failed
CI-Testsonar-1 / sonar (push) Failing after 1m12s
2026-04-06 10:47:49 +00:00
aabf65e6a0 Merge pull request 'Update .gitea/workflows/sonar.yml' (#2) from dev into main
Some checks failed
CI-Testsonar-1 / sonar (push) Failing after 1m21s
Reviewed-on: #2
2026-04-06 10:29:25 +00:00
48 changed files with 198 additions and 14 deletions

View File

@@ -0,0 +1,47 @@
name: CI
on:
push:
branches: [main, beta, staging, testing]
pull_request:
jobs:
ci:
uses: Rajendra.Reddy/wdipl-actions/.gitea/workflows/ci.yml@baedab602ca859a71cd77af59b5e4d21d6f7067a
with:
tech_stack: node
run_build: 'true'
run_sonar: 'true'
run_deploy: 'true'
wait_for_quality_gate: 'false'
app_path_beta: /var/www/app-beta
app_path_testing: /var/www/app-testing
app_path_staging: /var/www/app-staging
app_path_prod: /var/www/app-prod
pm2_id: app
secrets:
SONARQUBE_HOST: ${{ secrets.SONARQUBE_HOST }}
SONARQUBE_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
BETA_SERVER_HOST: ${{ secrets.BETA_SERVER_HOST }}
BETA_SERVER_PORT: ${{ secrets.BETA_SERVER_PORT }}
BETA_SERVER_USERNAME: ${{ secrets.BETA_SERVER_USERNAME }}
BETA_SERVER_PASSWORD: ${{ secrets.BETA_SERVER_PASSWORD }}
BETA_SERVER_KEY: ${{ secrets.BETA_SERVER_KEY }}
STAGING_SERVER_HOST: ${{ secrets.STAGING_SERVER_HOST }}
STAGING_SERVER_PORT: ${{ secrets.STAGING_SERVER_PORT }}
STAGING_SERVER_USERNAME: ${{ secrets.STAGING_SERVER_USERNAME }}
STAGING_SERVER_PASSWORD: ${{ secrets.STAGING_SERVER_PASSWORD }}
STAGING_SERVER_KEY: ${{ secrets.STAGING_SERVER_KEY }}
PROD_SERVER_HOST: ${{ secrets.PROD_SERVER_HOST }}
PROD_SERVER_PORT: ${{ secrets.PROD_SERVER_PORT }}
PROD_SERVER_USERNAME: ${{ secrets.PROD_SERVER_USERNAME }}
PROD_SERVER_PASSWORD: ${{ secrets.PROD_SERVER_PASSWORD }}
PROD_SERVER_KEY: ${{ secrets.PROD_SERVER_KEY }}

View File

@@ -0,0 +1,94 @@
name: Enforce Image Standards
on:
pull_request:
branches:
- main
- beta
- testing
- client
- staging
- production
types: [opened, synchronize, reopened]
paths:
- '**/*.jpg'
- '**/*.jpeg'
- '**/*.png'
workflow_dispatch:
inputs:
target_branch:
description: "Branch to optimize images on"
required: false
default: "main"
jobs:
optimize:
runs-on: ubuntu-latest
# 🚀 Use your internal image (no apt needed)
container:
image: git.wdipl.com/wdi-public/image-optimizer:latest
#credentials:
#username: ${{ secrets.REGISTRY_USER }}
#password: ${{ secrets.REGISTRY_PASSWORD }}
steps:
# 🔀 Decide branch (PR vs manual)
- name: Determine Branch
id: branch
run: |
if [ "${{ gitea.event_name }}" = "pull_request" ]; then
echo "branch=${{ gitea.head_ref }}" >> $GITHUB_OUTPUT
else
echo "branch=${{ inputs.target_branch }}" >> $GITHUB_OUTPUT
fi
# 📥 Checkout correct branch
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ steps.branch.outputs.branch }}
# 🖼 Resize images
- name: Resize Oversized Images
run: |
find . -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) \
-not -path "*/.git/*" \
-not -path "*/node_modules/*" \
-exec mogrify -resize 1920x1920\> {} \;
# 📉 Optimize JPEG
- name: Optimize JPEG
run: |
find . -type f \( -iname "*.jpg" -o -iname "*.jpeg" \) \
-not -path "*/.git/*" \
-not -path "*/node_modules/*" \
-exec jpegoptim --strip-all --max=85 {} \;
# 📉 Optimize PNG
- name: Optimize PNG
run: |
find . -type f -iname "*.png" \
-not -path "*/.git/*" \
-not -path "*/node_modules/*" \
-exec pngquant --force --ext .png --quality=75-90 {} \;
# 💾 Commit if changes exist
- name: Commit changes
run: |
git config --global user.name "CI Bot"
git config --global user.email "ci@local"
if [ -n "$(git status --porcelain)" ]; then
git add .
git commit -m "chore: optimize images via CI"
else
echo "No changes to commit"
fi
# 🚀 Push back to branch
- name: Push changes
run: |
git push origin HEAD:${{ steps.branch.outputs.branch }}

View File

@@ -1,16 +1,39 @@
name: CI-Testsonar-3 name: Sonar Check
on: on:
push:
branches: [main, testing]
pull_request: pull_request:
branches: [main, testing] branches:
- main
- beta
- testing
- client
- staging
- production
jobs: jobs:
sonar: sonarqube:
uses: Rajendra.Reddy/wdipl-actions/.gitea/workflows/qualitytest.yml@975341ae4c4547f1aec7d1c7b1e1e1eb6660798b name: SonarQube Scan
with: runs-on: ubuntu-latest
project_key: ${{ gitea.event.repository.name }}
secrets: container:
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }} image: git.wdipl.com/wdi-public/sonar-scanner-cli:12.0.0.3214_8.0.1
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} options: --user root
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run Sonar Scan
run: |
REPO_NAME=${{ gitea.event.repository.name }}
sonar-scanner \
-Dsonar.projectKey=$REPO_NAME \
-Dsonar.projectName=$REPO_NAME \
-Dsonar.sources=. \
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }} \
-Dsonar.token=${{ secrets.SONARQUBE_TOKEN }} \
-Dsonar.exclusions=node_modules/**,dist/**,coverage/** \
-Dsonar.qualitygate.wait=true

View File

@@ -0,0 +1,20 @@
name: CI
on:
push:
branches: [main, testing]
jobs:
sonar:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run SonarQube Scan
uses: http://git.wdipl.com/Rajendra.Reddy/wdipl-actions/actions/sonar@main
with:
sonar_host_url: ${{ secrets.SONARQUBE_HOST }}
sonar_token: ${{ secrets.SONARQUBE_TOKEN }}
wait_for_quality_gate: true

4
.gitignore vendored
View File

@@ -8,11 +8,11 @@ yarn-error.log*
pnpm-debug.log* pnpm-debug.log*
lerna-debug.log* lerna-debug.log*
# Environment files # Enviroment files
.env .env
.env.local .env.local
.env.*.local .env.*.local
.env.*.production
# Build output # Build output
dist/ dist/
build/ build/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 289 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 MiB

After

Width:  |  Height:  |  Size: 318 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 MiB

After

Width:  |  Height:  |  Size: 260 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 MiB

After

Width:  |  Height:  |  Size: 586 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 MiB

After

Width:  |  Height:  |  Size: 253 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 MiB

After

Width:  |  Height:  |  Size: 284 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 MiB

After

Width:  |  Height:  |  Size: 377 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 MiB

After

Width:  |  Height:  |  Size: 295 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 MiB

After

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 MiB

After

Width:  |  Height:  |  Size: 276 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 MiB

After

Width:  |  Height:  |  Size: 284 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 MiB

After

Width:  |  Height:  |  Size: 320 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 MiB

After

Width:  |  Height:  |  Size: 586 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 MiB

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 457 KiB

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 363 KiB

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 289 KiB

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 MiB

After

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 MiB

After

Width:  |  Height:  |  Size: 513 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 MiB

After

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 MiB

After

Width:  |  Height:  |  Size: 259 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 MiB

After

Width:  |  Height:  |  Size: 276 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 MiB

After

Width:  |  Height:  |  Size: 562 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 MiB

After

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 MiB

After

Width:  |  Height:  |  Size: 323 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 MiB

After

Width:  |  Height:  |  Size: 354 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 778 KiB

After

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 387 KiB

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 MiB

After

Width:  |  Height:  |  Size: 231 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 46 KiB