Skip to content

Commit

Permalink
Merge 7bc1c41 into a088477
Browse files Browse the repository at this point in the history
  • Loading branch information
kar122 committed Apr 18, 2023
2 parents a088477 + 7bc1c41 commit b451c6f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# json to blob
trigger:
branches:
include:
- json-to-blob

pool:
vmImage: 'windows-latest'

steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
# Clone the repository
git clone https://github.com/kar122/jsontoblob.git "$(System.DefaultWorkingDirectory)/scenarios"
- checkout: self
persistCredentials: true
clean: true
fetchDepth: 1

- task: AzureCLI@2
inputs:
azureSubscription: 'AzureRM authentication'
scriptLocation: 'inlineScript'
scriptType: 'ps1'
inlineScript: |
# Navigate to the cloned repository
cd "$(System.DefaultWorkingDirectory)/scenarios"
# Push changes to Azure Blob Container
az storage blob upload-batch --destination container --source . --pattern "scenarios.json" --account-name aksummasa

0 comments on commit b451c6f

Please sign in to comment.