Compare commits
50 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
786f7389ac | ||
|
|
c840fdc81b | ||
|
|
9e589de95a | ||
|
|
dddc077a10 | ||
|
|
08f158b8da | ||
|
|
2d1b992a81 | ||
|
|
5fbc8f449c | ||
|
|
0b395e96ac | ||
|
|
d7588f6d73 | ||
|
|
9087daa168 | ||
|
|
4b2b9c119e | ||
|
|
10241e464d | ||
|
|
aff6834329 | ||
|
|
d71a7542f7 | ||
|
|
c53f7cc4b7 | ||
|
|
eef6fb3856 | ||
|
|
dc52fc7e51 | ||
|
|
4e9c51fc55 | ||
|
|
e0795ca2d9 | ||
|
|
0ad291b7a6 | ||
|
|
bf178bb3f0 | ||
|
|
552f4a717a | ||
| a43ce681c5 | |||
| 4c391d033e | |||
| bb5d5440ed | |||
| 16b79b912d | |||
| ea983502fa | |||
| 11398ebd80 | |||
| 09685f1d46 | |||
| 610bcbec1e | |||
| b9ffd1818e | |||
| b2ef003fcf | |||
| f3a1e4c9a7 | |||
| c24852f7c3 | |||
| 4efe4dc941 | |||
| db04e6f686 | |||
| 0efd612438 | |||
| 09a2b391e8 | |||
| 24af58f0ab | |||
| 84474bec29 | |||
| 3eab945376 | |||
| ae107cabe2 | |||
| 0b75658b06 | |||
| b95bf55bb1 | |||
| 3f9db7342c | |||
| 41548e0ebc | |||
| c088f3530c | |||
| 9db52fda60 | |||
| 9131c22dcc | |||
| aabf65e6a0 |
71
.gitea/workflows/ci.yml
Normal file
71
.gitea/workflows/ci.yml
Normal file
@@ -0,0 +1,71 @@
|
||||
name: Project CI-testing
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, beta, staging, testing]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
preflight_debug:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
#region agent log
|
||||
- name: Print caller variable resolution
|
||||
run: |
|
||||
echo "DBG_CALLER_RUN_BUILD='${{ vars.RUN_BUILD }}'"
|
||||
echo "DBG_CALLER_RUN_QUALITY='${{ vars.RUN_QUALITY }}'"
|
||||
echo "DBG_CALLER_RUN_DEPLOY='${{ vars.RUN_DEPLOY }}'"
|
||||
#endregion
|
||||
|
||||
needs_probe:
|
||||
needs: [preflight_debug]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
#region agent log
|
||||
- name: Probe non-reusable needs chaining
|
||||
run: |
|
||||
echo "DBG_NEEDS_PROBE='after_preflight_ok'"
|
||||
#endregion
|
||||
|
||||
ci:
|
||||
needs: [preflight_debug]
|
||||
# Pin SHA (bump when wdipl-actions ci.yml changes). Propagates ci_steps via build workflow outputs.
|
||||
uses: Rajendra.Reddy/wdipl-actions/.gitea/workflows/ci.yml@50e2b8b36ec570d51f406f3e6620fea6c927f850
|
||||
|
||||
with:
|
||||
tech_stack: node
|
||||
|
||||
# Use repository variables in Gitea UI:
|
||||
# RUN_BUILD=true|false, RUN_QUALITY=true|false, RUN_DEPLOY=true|false
|
||||
run_build: ${{ vars.RUN_BUILD }}
|
||||
run_quality: ${{ vars.RUN_QUALITY }}
|
||||
run_deploy: ${{ vars.RUN_DEPLOY }}
|
||||
wait_for_quality_gate: 'false'
|
||||
|
||||
app_path_beta: /var/www/app-beta
|
||||
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 }}
|
||||
@@ -1,16 +0,0 @@
|
||||
name: CI-Testsonar-1
|
||||
on:
|
||||
push:
|
||||
branches: [main, testing]
|
||||
pull_request:
|
||||
branches: [main, testing]
|
||||
|
||||
jobs:
|
||||
sonar:
|
||||
uses: Rajendra.Reddy/wdipl-actions/.gitea/workflows/qualitytest.yml@975341ae4c4547f1aec7d1c7b1e1e1eb6660798b
|
||||
with:
|
||||
project_key: ${{ gitea.event.repository.name }}
|
||||
secrets:
|
||||
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
|
||||
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
20
.gitea/workflows/sonar.yml.bak
Normal file
20
.gitea/workflows/sonar.yml.bak
Normal 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
|
||||
6
.gitignore
vendored
6
.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
# Node modules
|
||||
node_modules/
|
||||
|
||||
node_modules
|
||||
*.env**
|
||||
*.env
|
||||
# Logs
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
@@ -30,3 +31,4 @@ Thumbs.db
|
||||
|
||||
# Temporary
|
||||
*.tmp
|
||||
package-lock.json
|
||||
|
||||
Reference in New Issue
Block a user