Skip to content

Commit

Permalink
set CLOUD_PROVIDER with upper case (#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Xi authored Mar 27, 2024
1 parent e3849e9 commit 4b12dfa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/utils.bat
Original file line number Diff line number Diff line change
Expand Up @@ -229,20 +229,26 @@ goto :EOF
--output %scriptdir%..\parameters.json ^
%scriptdir%..\.github\workflows\parameters_aws_capi.json.gpg
if !ERRORLEVEL! NEQ 0 goto :error
endlocal
set CLOUD_PROVIDER=AWS
)
if /I "%CLOUD_PROVIDER%"=="AZURE" (
echo == AZURE
gpg --quiet --batch --yes --decrypt --passphrase="%PARAMETERS_SECRET%" ^
--output %scriptdir%..\parameters.json ^
%scriptdir%..\.github\workflows\parameters_azure_capi.json.gpg
if !ERRORLEVEL! NEQ 0 goto :error
endlocal
set CLOUD_PROVIDER=AZURE
)
if /I "%CLOUD_PROVIDER%"=="GCP" (
echo === GCP
gpg --quiet --batch --yes --decrypt --passphrase="%PARAMETERS_SECRET%" ^
--output %scriptdir%..\parameters.json ^
%scriptdir%..\.github\workflows\parameters_gcp_capi.json.gpg
if !ERRORLEVEL! NEQ 0 goto :error
endlocal
set CLOUD_PROVIDER=GCP
)
if defined CLOUD_PROVIDER (
echo === Cloud Provider: %CLOUD_PROVIDER%
Expand Down

0 comments on commit 4b12dfa

Please sign in to comment.