Last active
February 16, 2022 08:55
-
-
Save asizikov/2bbbcca82c0f05ad6ea42730c3b238b5 to your computer and use it in GitHub Desktop.
Azure DevOps Pipeline. Create Octopus Deploy release and submit build metadata.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://blog.cloud-eng.nl/2021/01/27/terraform-octopus-deploy/ | |
- stage: octopus_deploy_release | |
displayName: 'Prepare release' | |
dependsOn: | |
- build_application | |
jobs: | |
- job: octopus | |
steps: | |
- download: current | |
artifact: 'drop' | |
- task: OctopusPush@4 | |
inputs: | |
OctoConnectedServiceName: $(octopusConnection) | |
Space: '$(octopusSpaces)' | |
Package: '$(Pipeline.Workspace)/drop/func.0.0.$(Build.BuildId).zip' | |
Replace: 'false' | |
- task: OctopusMetadata@4 | |
inputs: | |
OctoConnectedServiceName: $(octopusConnection) | |
Space: '$(octopusSpaces)' | |
PackageId: 'func' | |
PackageVersion: '0.0.$(Build.BuildId)' | |
Replace: 'true' | |
- task: OctopusCreateRelease@4 | |
inputs: | |
OctoConnectedServiceName: $(octopusConnection) | |
Space: '$(octopusSpaces)' | |
ProjectGroup: '$(octopusProjectGroup)' | |
ProjectName: '$(octopusProject)' | |
ReleaseNumber: '0.0.$(Build.BuildId)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment