mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-04-20 23:36:29 -04:00
Check if CLI version supports flag before adding it
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
9c13603756
commit
2b8ccb49db
@ -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…
x
Reference in New Issue
Block a user