debugging env vars and secrets

This commit is contained in:
Joseph Flinn 2021-01-05 13:45:32 +00:00
parent b0878fd660
commit 0efb677009
1 changed files with 21 additions and 1 deletions

View File

@ -12,6 +12,25 @@ variables:
- group: build-sign-test - group: build-sign-test
steps: steps:
- pwsh: |
Write-Host "------------------------"
Write-Host "secret test - $env:SECRET_TEST"
Write-Host "SIGNING_CERT_NAME - $env:SIGNING_CERT_NAME"
Write-Host "------------------------"
displayName: 'Var & Secret Testing'
env:
CSC_LINK: $(ebSigningCertIdentifierURL)
CSC_KEY_PASSWORD: $(ebSigningCertKey)
SIGNING_VAULT_URL: $(SigningVaultURL)
SIGNING_CLIENT_ID: $(SigningClientId)
SIGNING_TENTANT_ID: $(SigningTenantId)
SIGNING_CLIENT_SECRET: $(SigningClientSecret)
SIGNING_CERT_NAME: $(SigningCertName)
SECRET_TEST: $(secretTest)
- script: exit 1
displayName: Stop Pipeline
- task: NodeTool@0 - task: NodeTool@0
inputs: inputs:
versionSpec: '10.x' versionSpec: '10.x'
@ -70,7 +89,8 @@ steps:
# This task is not working... # This task is not working...
- pwsh: | - pwsh: |
Write-Host "------------------------" Write-Host "------------------------"
Write-Host "az pipeline secret test - $SECRET_TEST" Write-Host "az pipeline secret test - $env:SECRET_TEST"
Write-Host "az pipeline var test - $env:SIGNING_CERT_NAME"
Write-Host "------------------------" Write-Host "------------------------"
npx electron-builder --win --x64 --ia32 -p never -c.win.certificateSubjectName=\"Bitwarden Inc\" npx electron-builder --win --x64 --ia32 -p never -c.win.certificateSubjectName=\"Bitwarden Inc\"
displayName: 'electron-builder build & sign' displayName: 'electron-builder build & sign'