diff --git a/.github/workflows/azure-ipam-build.yml b/.github/workflows/azure-ipam-build.yml index 3cec1e7..fad38e7 100644 --- a/.github/workflows/azure-ipam-build.yml +++ b/.github/workflows/azure-ipam-build.yml @@ -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 diff --git a/tools/build.ps1 b/tools/build.ps1 index 9a2b0d0..de69f52 100644 --- a/tools/build.ps1 +++ b/tools/build.ps1 @@ -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 }