Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c4c020d128 | |||
| c528f59a8f |
@@ -1,71 +0,0 @@
|
|||||||
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 }}
|
|
||||||
16
.gitea/workflows/sonar.yml
Normal file
16
.gitea/workflows/sonar.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
name: CI-Testsonar-3
|
||||||
|
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 }}
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
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,7 +1,6 @@
|
|||||||
# Node modules
|
# Node modules
|
||||||
node_modules
|
node_modules/
|
||||||
*.env**
|
|
||||||
*.env
|
|
||||||
# Logs
|
# Logs
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
@@ -31,4 +30,3 @@ Thumbs.db
|
|||||||
|
|
||||||
# Temporary
|
# Temporary
|
||||||
*.tmp
|
*.tmp
|
||||||
package-lock.json
|
|
||||||
|
|||||||
Reference in New Issue
Block a user