mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-06-07 06:03:05 -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
|
shell: bash
|
||||||
if: inputs.cloudProvider == 'azure'
|
if: inputs.cloudProvider == 'azure'
|
||||||
run: |
|
run: |
|
||||||
|
extraFlags=""
|
||||||
|
|
||||||
|
if [[ $(constellation iam create azure --help | grep -c -- --subscriptionID) -ne 0 ]]; then
|
||||||
|
extraFlags="--subscriptionID=${{ inputs.azureSubscriptionID }}"
|
||||||
|
fi
|
||||||
|
|
||||||
constellation iam create azure \
|
constellation iam create azure \
|
||||||
--subscriptionID="${{ inputs.azureSubscriptionID }}" \
|
|
||||||
--region="${{ inputs.azureRegion }}" \
|
--region="${{ inputs.azureRegion }}" \
|
||||||
--resourceGroup="${{ inputs.namePrefix }}-rg" \
|
--resourceGroup="${{ inputs.namePrefix }}-rg" \
|
||||||
--servicePrincipal="${{ inputs.namePrefix }}-sp" \
|
--servicePrincipal="${{ inputs.namePrefix }}-sp" \
|
||||||
--update-config \
|
--update-config \
|
||||||
--tf-log=DEBUG \
|
--tf-log=DEBUG \
|
||||||
--yes
|
--yes ${extraFlags}
|
||||||
|
|
||||||
- name: Constellation iam create gcp
|
- name: Constellation iam create gcp
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue