Skip to content

Commit

Permalink
Added script artifact publishing to release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelvds committed Nov 10, 2023
1 parent 0e307c5 commit 83a68f6
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion azure-pipelines/templates/stages/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,30 @@ stages:
scriptType: ps
scriptLocation: inlineScript
inlineScript: |
az storage blob upload-batch --account-name ${{ stage.templateContext.storage }} -d "packages" --destination-path "${{ target }}/fiskaltrust.Launcher/" -s "$(Pipeline.Workspace)/${{ parameters.artifact }}/package-${{ target }}/" --pattern "*.zip*"
az storage blob upload-batch --account-name ${{ stage.templateContext.storage }} -d "packages" --destination-path "${{ target }}/fiskaltrust.Launcher/" -s "$(Pipeline.Workspace)/${{ parameters.artifact }}/package-${{ target }}/" --pattern "*.zip*"
- download: current
artifact: scripts-linux
displayName: "Download Linux script artifact"

- task: AzureCLI@2
displayName: "Publish Linux scripts to blob storage"
inputs:
azureSubscription: ${{ stage.templateContext.serviceConnection }}
scriptType: ps
scriptLocation: inlineScript
inlineScript: |
az storage blob upload-batch --account-name ${{ stage.templateContext.storage }} -d "scripts/linux/fiskaltrust.Launcher.Scripts/" -s "$(Pipeline.Workspace)/scripts-linux/" --pattern "*.zip"
- download: current
artifact: scripts-windows
displayName: "Download Windows script artifact"

- task: AzureCLI@2
displayName: "Publish Windows scripts to blob storage"
inputs:
azureSubscription: ${{ stage.templateContext.serviceConnection }}
scriptType: ps
scriptLocation: inlineScript
inlineScript: |
az storage blob upload-batch --account-name ${{ stage.templateContext.storage }} -d "scripts/windows/fiskaltrust.Launcher.Scripts/" -s "$(Pipeline.Workspace)/scripts-windows/" --pattern "*.zip"

0 comments on commit 83a68f6

Please sign in to comment.