diff --git a/.github/workflows/01-deploy-control-plane.yaml b/.github/workflows/01-deploy-control-plane.yaml index 0d740b3..4ded78d 100644 --- a/.github/workflows/01-deploy-control-plane.yaml +++ b/.github/workflows/01-deploy-control-plane.yaml @@ -55,10 +55,15 @@ jobs: application_id: ${{ secrets.APPLICATION_ID }} application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }} organization: ${{ github.repository_owner }} + - name: Azure Login + uses: Azure/Login@v2 + with: + creds: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}' - name: Setup deployer run: | echo '${{ toJSON(github) }}' > /tmp/github_context.json - /source/deploy/automation/01-deploy-control-plane/01-setup-deployer.sh + cd ${SAP_AUTOMATION_REPO_PATH} + deploy/automation/01-deploy-control-plane/01-setup-deployer.sh env: APP_REGISTRATION_APP_ID: ${{ secrets.APP_REGISTRATION_APP_ID }} APP_TOKEN: ${{ steps.get_workflow_token.outputs.token }} @@ -106,7 +111,8 @@ jobs: - name: Deploy control plane run: | echo '${{ toJSON(github) }}' > /tmp/github_context.json - /source/deploy/automation/01-deploy-control-plane/02-deploy-control-plane.sh + cd ${SAP_AUTOMATION_REPO_PATH} + deploy/automation/01-deploy-control-plane/02-deploy-control-plane.sh env: APP_REGISTRATION_APP_ID: ${{ secrets.APP_REGISTRATION_APP_ID }} APP_TOKEN: ${{ steps.get_workflow_token.outputs.token }}