Skip to content

Commit c9fc485

Browse files
authored
Merge pull request #318 from Azure/ipam-actions-fixes1
Fixed NPM LogLevel & Build Environment
2 parents fb7fe29 + 2a82c87 commit c9fc485

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/azure-ipam-build.yml

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
init:
1717
name: Initialize Azure IPAM Build
1818
runs-on: ubuntu-latest
19+
environment: production
1920
outputs:
2021
ipamVersion: ${{ steps.extractVersion.outputs.ipamVersion }}
2122
steps:
@@ -34,6 +35,7 @@ jobs:
3435
build:
3536
name: Build Azure IPAM Containers
3637
runs-on: ubuntu-latest
38+
environment: production
3739
needs: [ init ]
3840
steps:
3941
- name: Azure Login
@@ -61,6 +63,7 @@ jobs:
6163
build-legacy:
6264
name: Build Legacy Azure IPAM Containers
6365
runs-on: ubuntu-latest
66+
environment: production
6467
needs: [ init ]
6568
steps:
6669
- name: Azure Login

tools/build.ps1

+5-5
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,17 @@ try {
154154

155155
Write-Host "INFO: Running NPM Install..." -ForegroundColor Green
156156

157-
# Build Azure IPAM UI
157+
# Install Azure IPAM UI Dependencies
158158
$npmInstallErr = $(
159-
$npmInstall = npm ci --no-progress --no-update-notifier --no-fund
159+
$npmInstall = npm ci --no-progress --no-update-notifier --no-fund --loglevel error
160160
) 2>&1
161161

162162
# Switch back to original dir
163163
Pop-Location
164164

165-
# Exit if NPM Build fails
165+
# Exit if NPM Install fails
166166
if($npmInstallErr) {
167-
Write-Host "ERROR: NPM Build failed!" -ForegroundColor red
167+
Write-Host "ERROR: NPM Install failed!" -ForegroundColor red
168168
throw $npmInstallErr
169169
}
170170

@@ -183,7 +183,7 @@ try {
183183

184184
# Exit if NPM Build fails
185185
if($npmBuildErr) {
186-
Write-Host "ERROR: NPM Install failed!" -ForegroundColor red
186+
Write-Host "ERROR: NPM Build failed!" -ForegroundColor red
187187
throw $npmBuildErr
188188
}
189189

0 commit comments

Comments
 (0)