ARO-RP/.pipelines/templates/template-deploy-azure-env.yml

23 строки
793 B
YAML

parameters:
azureDevOpsJSONSPN: ''
configDirectory: ''
configFileName: ''
deployerDirectory: ''
location: ''
steps:
- script: |
set -eu
trap 'rm -f devops-spn.json' EXIT
base64 -d >devops-spn.json <<<${{ parameters.azureDevOpsJSONSPN }}
export AZURE_CLIENT_ID=$(jq -r .clientId <devops-spn.json)
export AZURE_CLIENT_SECRET=$(jq -r .clientSecret <devops-spn.json)
export AZURE_TENANT_ID=$(jq -r .tenantId <devops-spn.json)
export AZURE_SUBSCRIPTION_ID="${{ parameters.subscriptionId }}"
chmod +x ${{ parameters.deployerDirectory }}/aro
${{ parameters.deployerDirectory }}/aro deploy ${{ parameters.configDirectory }}/${{ parameters.configFileName }} ${{ parameters.location }}
displayName: 🚀 Buildout/Deploy ${{ parameters.location }} env