From 83a68f63906b93edf07eef51e0602e87ef4fa445 Mon Sep 17 00:00:00 2001 From: PawelKarczewski Date: Fri, 10 Nov 2023 17:20:21 +0100 Subject: [PATCH] Added script artifact publishing to release pipeline --- azure-pipelines/templates/stages/release.yml | 28 +++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/azure-pipelines/templates/stages/release.yml b/azure-pipelines/templates/stages/release.yml index 1f547087..6e60f315 100644 --- a/azure-pipelines/templates/stages/release.yml +++ b/azure-pipelines/templates/stages/release.yml @@ -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*" \ No newline at end of file + 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"