Skip to content

Commit

Permalink
feat(pipelines): add azure app authentication for pr website blob upload
Browse files Browse the repository at this point in the history
  • Loading branch information
tudorpopams committed Oct 30, 2024
1 parent 6111131 commit 28f8f08
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/pr-website-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,23 @@ jobs:
name: pr-website-artifacts
path: ./pr-deploy-site/

- name: 'Login via Azure CLI'
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Upload PR WebSite
uses: azure/cli@v2
env:
AZCOPY_AUTO_LOGIN_TYPE: 'AZCLI'
with:
azcliversion: latest
inlineScript: |
az storage blob upload-batch \
--destination '$web' \
--source ./pr-deploy-site \
--subscription ${{ env.AZURE_SUBSCRIPTION }}
--account-name ${{ env.AZURE_STORAGE }} \
--destination-path ${{ env.DEPLOY_BASE_PATH }} \
--auth-mode login \
Expand Down

0 comments on commit 28f8f08

Please sign in to comment.