mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-31 12:04:27 -04:00
ci: check if CLI version supports --subscriptionID
flag before using it (#3364)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
effb086cd3
commit
89eb8ca6ae
1 changed files with 7 additions and 2 deletions
|
@ -79,14 +79,19 @@ runs:
|
|||
shell: bash
|
||||
if: inputs.cloudProvider == 'azure'
|
||||
run: |
|
||||
extraFlags=""
|
||||
|
||||
if [[ $(constellation iam create azure --help | grep -c -- --subscriptionID) -ne 0 ]]; then
|
||||
extraFlags="--subscriptionID=${{ inputs.azureSubscriptionID }}"
|
||||
fi
|
||||
|
||||
constellation iam create azure \
|
||||
--subscriptionID="${{ inputs.azureSubscriptionID }}" \
|
||||
--region="${{ inputs.azureRegion }}" \
|
||||
--resourceGroup="${{ inputs.namePrefix }}-rg" \
|
||||
--servicePrincipal="${{ inputs.namePrefix }}-sp" \
|
||||
--update-config \
|
||||
--tf-log=DEBUG \
|
||||
--yes
|
||||
--yes ${extraFlags}
|
||||
|
||||
- name: Constellation iam create gcp
|
||||
shell: bash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue