mirror of
https://gitlab.com/vyla-entertainment/home.git
synced 2026-11-20 09:07:23 -05:00
simplify GitLab pipeline and remove credential helper
This commit is contained in:
@@ -39,21 +39,12 @@ build:
|
|||||||
AUTH_PROXY_DEV_BYPASS_AUTH: $DEV_BYPASS_AUTH
|
AUTH_PROXY_DEV_BYPASS_AUTH: $DEV_BYPASS_AUTH
|
||||||
AUTH_PROXY_PROXY_VITE_API_KEY: $PROXY_VITE_API_KEY
|
AUTH_PROXY_PROXY_VITE_API_KEY: $PROXY_VITE_API_KEY
|
||||||
GIT_TERMINAL_PROMPT: "0"
|
GIT_TERMINAL_PROMPT: "0"
|
||||||
|
|
||||||
ELECTRON_CACHE: "$CI_PROJECT_DIR/.electron-cache"
|
|
||||||
npm_config_cache: "$CI_PROJECT_DIR/.npm"
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
key: "vyla-home-cache-v1"
|
key:
|
||||||
|
files:
|
||||||
|
- package-lock.json
|
||||||
paths:
|
paths:
|
||||||
- .npm/
|
- node_modules/
|
||||||
- .electron-cache/
|
|
||||||
- last-shas.json
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- git config --global credential.helper ""
|
|
||||||
- npm config set loglevel error
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- npm ci
|
- npm ci
|
||||||
|
|
||||||
@@ -111,6 +102,8 @@ build:
|
|||||||
- |
|
- |
|
||||||
if (Test-Path "update-payload.zip") {
|
if (Test-Path "update-payload.zip") {
|
||||||
Write-Host "Build artifact verified: update-payload.zip exists"
|
Write-Host "Build artifact verified: update-payload.zip exists"
|
||||||
|
$size = (Get-Item update-payload.zip).Length
|
||||||
|
Write-Host " Size: $size bytes"
|
||||||
} else {
|
} else {
|
||||||
Write-Error "Build artifact missing: update-payload.zip"
|
Write-Error "Build artifact missing: update-payload.zip"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -118,11 +111,16 @@ build:
|
|||||||
|
|
||||||
if (Test-Path "manifest.json") {
|
if (Test-Path "manifest.json") {
|
||||||
Write-Host "Manifest file verified"
|
Write-Host "Manifest file verified"
|
||||||
|
Get-Content manifest.json | ConvertFrom-Json | ConvertTo-Json -Depth 10
|
||||||
} else {
|
} else {
|
||||||
Write-Error "Manifest file missing"
|
Write-Error "Manifest file missing"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Test-Path "validation-report.json") {
|
||||||
|
Write-Host "Validation report verified"
|
||||||
|
}
|
||||||
|
|
||||||
- Write-Host "Packaging Electron application..."
|
- Write-Host "Packaging Electron application..."
|
||||||
- npm run dist
|
- npm run dist
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user