mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-12 19:23:13 +08:00
Merge pull request #798 from mbilker/appveyor-pr-no-secure
AppVeyor Use no secure variables in Pull Requests
This commit is contained in:
commit
72a624fe78
1 changed files with 12 additions and 8 deletions
20
appveyor.yml
20
appveyor.yml
|
@ -27,15 +27,19 @@ install:
|
|||
- ps: nuget install secure-file -ExcludeVersion
|
||||
|
||||
# We need to extract the encrypted private ssh key to clone the submodule.
|
||||
- ps: secure-file\tools\secure-file -decrypt build\resources\ssh\nylas-n1-ci-ssh-secure-file.enc -secret $env:DECRYPTION_PASSWORD
|
||||
- ps: mv -Force build\resources\ssh\nylas-n1-ci-ssh-secure-file c:\users\appveyor\.ssh\id_rsa
|
||||
- ps: git submodule init
|
||||
# http://stackoverflow.com/questions/21002919/running-a-remote-powershell-script-with-a-git-command-in-it-results-in-nativecom
|
||||
- ps: Start-Process -FilePath git.exe -ArgumentList 'submodule update' -Wait -NoNewWindow
|
||||
- ps: |
|
||||
if ($env:DECRYPTION_PASSWORD) {
|
||||
secure-file\tools\secure-file -decrypt build\resources\ssh\nylas-n1-ci-ssh-secure-file.enc -secret $env:DECRYPTION_PASSWORD
|
||||
mv -Force build\resources\ssh\nylas-n1-ci-ssh-secure-file c:\users\appveyor\.ssh\id_rsa
|
||||
git submodule init
|
||||
|
||||
- ps: secure-file\tools\secure-file -decrypt build\resources\nylas\encrypted_certificates\appveyor\win-nylas-n1.p12.enc -secret $env:DECRYPTION_PASSWORD
|
||||
- ps: secure-file\tools\secure-file -decrypt build\resources\nylas\encrypted_certificates\appveyor\set_win_env.ps1.enc -secret $env:DECRYPTION_PASSWORD
|
||||
- ps: . build\resources\nylas\encrypted_certificates\appveyor\set_win_env.ps1
|
||||
# http://stackoverflow.com/questions/21002919/running-a-remote-powershell-script-with-a-git-command-in-it-results-in-nativecom
|
||||
Start-Process -FilePath git.exe -ArgumentList 'submodule update' -Wait -NoNewWindow
|
||||
|
||||
secure-file\tools\secure-file -decrypt build\resources\nylas\encrypted_certificates\appveyor\win-nylas-n1.p12.enc -secret $env:DECRYPTION_PASSWORD
|
||||
secure-file\tools\secure-file -decrypt build\resources\nylas\encrypted_certificates\appveyor\set_win_env.ps1.enc -secret $env:DECRYPTION_PASSWORD
|
||||
. build\resources\nylas\encrypted_certificates\appveyor\set_win_env.ps1
|
||||
}
|
||||
|
||||
build_script:
|
||||
- ps: .\script\cibuild.ps1
|
||||
|
|
Loading…
Reference in a new issue