зеркало из https://github.com/Azure/ipam.git
Added fixes for build environment and npm log level
This commit is contained in:
Родитель
fb7fe292f8
Коммит
2a82c87696
|
@ -16,6 +16,7 @@ jobs:
|
|||
init:
|
||||
name: Initialize Azure IPAM Build
|
||||
runs-on: ubuntu-latest
|
||||
environment: production
|
||||
outputs:
|
||||
ipamVersion: ${{ steps.extractVersion.outputs.ipamVersion }}
|
||||
steps:
|
||||
|
@ -34,6 +35,7 @@ jobs:
|
|||
build:
|
||||
name: Build Azure IPAM Containers
|
||||
runs-on: ubuntu-latest
|
||||
environment: production
|
||||
needs: [ init ]
|
||||
steps:
|
||||
- name: Azure Login
|
||||
|
@ -61,6 +63,7 @@ jobs:
|
|||
build-legacy:
|
||||
name: Build Legacy Azure IPAM Containers
|
||||
runs-on: ubuntu-latest
|
||||
environment: production
|
||||
needs: [ init ]
|
||||
steps:
|
||||
- name: Azure Login
|
||||
|
|
|
@ -154,17 +154,17 @@ try {
|
|||
|
||||
Write-Host "INFO: Running NPM Install..." -ForegroundColor Green
|
||||
|
||||
# Build Azure IPAM UI
|
||||
# Install Azure IPAM UI Dependencies
|
||||
$npmInstallErr = $(
|
||||
$npmInstall = npm ci --no-progress --no-update-notifier --no-fund
|
||||
$npmInstall = npm ci --no-progress --no-update-notifier --no-fund --loglevel error
|
||||
) 2>&1
|
||||
|
||||
# Switch back to original dir
|
||||
Pop-Location
|
||||
|
||||
# Exit if NPM Build fails
|
||||
# Exit if NPM Install fails
|
||||
if($npmInstallErr) {
|
||||
Write-Host "ERROR: NPM Build failed!" -ForegroundColor red
|
||||
Write-Host "ERROR: NPM Install failed!" -ForegroundColor red
|
||||
throw $npmInstallErr
|
||||
}
|
||||
|
||||
|
@ -183,7 +183,7 @@ try {
|
|||
|
||||
# Exit if NPM Build fails
|
||||
if($npmBuildErr) {
|
||||
Write-Host "ERROR: NPM Install failed!" -ForegroundColor red
|
||||
Write-Host "ERROR: NPM Build failed!" -ForegroundColor red
|
||||
throw $npmBuildErr
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче